update
This commit is contained in:
1 parent
0690285147
commit
5618cd2738
154 files changed
+5021
-3161
No files matched your search
@@ -13,19 +13,19 @@ import (
|
||||
|
||||
// UnifiedAlertItem 统一告警事件视图 // Logan.Li
|
||||
type UnifiedAlertItem struct {
|
||||
ID string `json:"id"`
|
||||
SourceType string `json:"source_type"`
|
||||
RuleName string `json:"rule_name"`
|
||||
Title string `json:"title"`
|
||||
Message string `json:"message"`
|
||||
Severity string `json:"severity"`
|
||||
Status string `json:"status"`
|
||||
Target string `json:"target"`
|
||||
Metric string `json:"metric"`
|
||||
Value float64 `json:"value"`
|
||||
Threshold float64 `json:"threshold"`
|
||||
StartedAt string `json:"started_at"`
|
||||
ResolvedAt *string `json:"resolved_at,omitempty"`
|
||||
ID string `json:"id"`
|
||||
SourceType string `json:"source_type"`
|
||||
RuleName string `json:"rule_name"`
|
||||
Title string `json:"title"`
|
||||
Message string `json:"message"`
|
||||
Severity string `json:"severity"`
|
||||
Status string `json:"status"`
|
||||
Target string `json:"target"`
|
||||
Metric string `json:"metric"`
|
||||
Value float64 `json:"value"`
|
||||
Threshold float64 `json:"threshold"`
|
||||
StartedAt string `json:"started_at"`
|
||||
ResolvedAt *string `json:"resolved_at,omitempty"`
|
||||
}
|
||||
|
||||
// ListUnifiedAlerts 统一告警列表(主机 + 中间件 + 站点 + 日志)
|
||||
@@ -212,4 +212,4 @@ func countSeverityStatus(items []UnifiedAlertItem, sev, status string) int {
|
||||
}
|
||||
}
|
||||
return n
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user