package dto import "encoding/json" type AlertRuleQuery struct { Page int `form:"pageNum"` PageSize int `form:"pageSize"` RuleName string `form:"ruleName"` RuleType string `form:"ruleType"` MonitorMetric string `form:"monitorMetric"` } type AlertRuleRequest struct { ConditionMode int `json:"conditionMode"` AmountDirection int `json:"amountDirection"` AmountThreshold *json.Number `json:"amountThreshold"` ID json.Number `json:"id"` RuleName string `json:"ruleName"` RuleType string `json:"ruleType"` MonitorMetric int `json:"monitorMetric"` StatPeriodDays *int `json:"statPeriodDays"` MomDirection *int `json:"momDirection"` MomThreshold *json.Number `json:"momThreshold"` UnloginDays *int `json:"unloginDays"` WarningColor string `json:"warningColor"` } type AlertRuleResponse struct { ConditionMode int `json:"conditionMode"` AmountDirection int `json:"amountDirection"` AmountThreshold *string `json:"amountThreshold"` ID uint64 `json:"id,string"` RuleName string `json:"ruleName"` RuleType string `json:"ruleType"` RuleTypeLabel string `json:"ruleTypeLabel"` MonitorMetric int `json:"monitorMetric"` MonitorMetricLabel string `json:"monitorMetricLabel"` StatPeriodDays *int `json:"statPeriodDays"` MomDirection *int `json:"momDirection"` MomDirectionLabel string `json:"momDirectionLabel"` MomThreshold *json.Number `json:"momThreshold"` UnloginDays *int `json:"unloginDays"` MonitorScope int `json:"monitorScope"` WarningColor string `json:"warningColor"` CreatorID uint `json:"creatorId"` CreatorName string `json:"creatorName"` Enabled int `json:"enabled"` CreatedAt *string `json:"createdAt"` UpdatedAt *string `json:"updatedAt"` RuleDescription string `json:"ruleDescription"` } type AlertRulePage struct { Rows []*AlertRuleResponse `json:"rows"` Total int64 `json:"total"` }