mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-28 03:23:25 +08:00
1.panel和dashboard继承scoperesource。通过joint进行关联 2.dashboade 通过details 参数控制是否返回所关联的panel信息。penel新建时需要此逻辑 3.依据scoperesource属性实现查询,创建的逻辑
32 lines
620 B
Go
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"`
|
|
}
|