Files
cloudpods/pkg/apis/monitor/alertpanel.go
T
zhaoxiangchun d519be9ab1 modify monitor dashboard save:
1.panel和dashboard继承scoperesource。通过joint进行关联
2.dashboade 通过details
  参数控制是否返回所关联的panel信息。penel新建时需要此逻辑
3.依据scoperesource属性实现查询,创建的逻辑
2020-10-30 12:11:33 +08:00

32 lines
620 B
Go

package monitor
import "yunion.io/x/onecloud/pkg/apis"
type AlertPanelCreateInput struct {
apis.ScopedResourceInput
CommonMetricInputQuery
AlertCreateInput
Refresh string `json:"refresh"`
DashboardId string `json:"dashboard_id"`
}
type AlertPanelListInput struct {
AlertListInput
DashboardId string `json:"dashboard_id"`
}
type AlertPanelUpdateInput struct {
apis.ScopedResourceBaseInfo
CommonMetricInputQuery
V1AlertUpdateInput
Refresh string `json:"refresh"`
}
type PanelDetails struct {
AlertDetails
CommonAlertMetricDetails []*CommonAlertMetricDetails `json:"common_alert_metric_details"`
}