Skip to content

Commit

Permalink
Modify alert structure and inherit scoperesource
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoxiangchun committed Jun 21, 2020
1 parent 6c66185 commit f20a87a
Show file tree
Hide file tree
Showing 18 changed files with 440 additions and 125 deletions.
96 changes: 53 additions & 43 deletions pkg/apis/compute/zz_generated.model.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

81 changes: 67 additions & 14 deletions pkg/apis/identity/zz_generated.model.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions pkg/apis/image/zz_generated.model.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions pkg/apis/monitor/alert.go
Expand Up @@ -120,7 +120,7 @@ type AlertCreateInput struct {
}

type AlertUpdateInput struct {
apis.VirtualResourceBaseUpdateInput
apis.StandaloneResourceBaseUpdateInput

Message *string `json:"message"`

Expand All @@ -139,15 +139,16 @@ type AlertUpdateInput struct {
}

type AlertListInput struct {
apis.VirtualResourceListInput
apis.ScopedResourceBaseListInput
apis.EnabledResourceBaseListInput

apis.StatusStandaloneResourceListInput
// 以报警是否启用/禁用过滤列表
// Enabled *bool `json:"enabled"`
}

type AlertDetails struct {
apis.VirtualResourceDetails
apis.StatusStandaloneResourceDetails
apis.ScopedResourceBaseInfo
}

type AlertTestRunInput struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/monitor/alertnotification.go
Expand Up @@ -21,7 +21,7 @@ import (
)

type AlertJointResourceBaseDetails struct {
apis.VirtualJointResourceBaseDetails
apis.JointResourceBaseDetails
SAlertJointsBase
Alert string `json:"alert"`
}
Expand Down

0 comments on commit f20a87a

Please sign in to comment.