package dto import "encoding/json" type AlertRecordQuery struct { Page int `form:"pageNum"` PageSize int `form:"pageSize"` PlatformCodes string `form:"platformCodes"` TargetPromoteID *uint64 `form:"targetPromoteId"` BusinessID *uint `form:"businessId"` TargetPromoteName string `form:"targetPromoteName"` RuleName string `form:"ruleName"` RuleType string `form:"ruleType"` BusinessName string `form:"businessName"` MonitorMetric *int `form:"monitorMetric"` Status *int `form:"status"` } type AlertProcessRequest struct { AlertID json.Number `json:"alertId"` Note string `json:"note"` } type AlertNoteRequest struct { AlertID json.Number `json:"alertId"` NoteContent string `json:"noteContent"` AttachmentIDs []json.RawMessage `json:"attachmentIds"` } type AlertRecordResponse struct { ID uint64 `json:"id,string"` PlatformCode string `json:"platformCode"` PlatformName string `json:"platformName"` RuleID uint64 `json:"ruleId,string"` RuleName string `json:"ruleName"` RuleType string `json:"ruleType"` RuleTypeLabel string `json:"ruleTypeLabel"` MonitorMetric *int `json:"monitorMetric"` MonitorMetricLabel string `json:"monitorMetricLabel"` // 旧视图声明了颜色,但记录没有对应快照字段,保留空值。 WarningColor *string `json:"warningColor"` TargetPromoteID uint64 `json:"targetPromoteId"` TargetPromoteName string `json:"targetPromoteName"` BusinessID uint `json:"businessId"` BusinessName string `json:"businessName"` AlertContent string `json:"alertContent"` Status int `json:"status"` StatusLabel string `json:"statusLabel"` CreatedAt *string `json:"createdAt"` UpdatedAt *string `json:"updatedAt"` } type AlertLogResponse struct { ID uint64 `json:"id,string"` AlertID uint64 `json:"alertId,string"` OperatorID uint `json:"operatorId"` OperatorName string `json:"operatorName"` LogType int `json:"logType"` LogTypeLabel string `json:"logTypeLabel"` ActionDetail string `json:"actionDetail"` NoteContent string `json:"noteContent"` Attachments []string `json:"attachments"` CreatedAt *string `json:"createdAt"` } type AlertRecordRows struct { Rows []*AlertRecordResponse `json:"rows"` Total int64 `json:"total"` } type AlertRecordPage struct { PageData AlertRecordRows `json:"pageData"` StatusCount map[int]int64 `json:"statusCount"` Available bool `json:"available"` } type AlertRecordDetail struct { AlertRecord *AlertRecordResponse `json:"alertRecord"` OperationLogs []*AlertLogResponse `json:"operationLogs"` CanAudit bool `json:"canAudit"` }