package entity import "gitlab.wodcloud.com/smart-operation/so-operation-api/src/pkg/beagle/jsontime" type AlertOverview struct { RiskLevel int `json:"risk_level"` MetricName string `json:"metric_name" xorm:"'metric_name'"` // 预警规则名称(指标名称) UnresolvedCount int `json:"unresolved_count"` // 未恢复数量 TotalCount int `json:"total_count"` // 总预警数 List []AlertArray `json:"list"` // 预警列表 CreatedBy string `json:"created_by" xorm:"'created_by'"` // 创建人 CreatedAt jsontime.Time `json:"created_at" xorm:"'created_at'"` // 创建时间 UpdatedBy string `json:"updated_by" xorm:"'updated_by'"` // 更新人 UpdatedAt jsontime.Time `json:"updated_at" xorm:"'updated_at'"` // 更新时间 } type AlertArray struct { MetricName string `json:"metric_name" xorm:"'metric_name'"` // 预警规则名称(指标名称) UnresolvedCount int `json:"unresolved_count"` // 未恢复数量 TotalCount int `json:"total_count"` // 总预警数 } func (a *AlertOverview) TableName() string { return "alert_overview" }