package models import ( "database/sql" ) type AlertRule struct { Id int64 `db:"id"` // id ClusterId int64 `db:"cluster_id"` Name string `db:"name"` // 节点名称 AlertType string `db:"alert_type"` // 节点类型 int64 `db:"cpu_total"` // cpu核数 PromQL string `db:"prom_ql"` Duration string `db:"duration"` AlertLevel string `db:"alert_level"` Annotations string `db:"annotations"` CreatedBy sql.NullInt64 `db:"created_by"` // 创建人 UpdatedBy sql.NullInt64 `db:"updated_by"` // 更新人 }