feat(platform): add quality notification plan
This commit is contained in:
@@ -291,6 +291,47 @@ type QualityBucketStat struct {
|
||||
Count int `json:"count"`
|
||||
}
|
||||
|
||||
type QualityNotificationPlan struct {
|
||||
Summary QualitySummary `json:"summary"`
|
||||
Rules []QualityAlertRule `json:"rules"`
|
||||
Policies []QualityNotificationPolicy `json:"policies"`
|
||||
PriorityIssues []QualityPriorityIssue `json:"priorityIssues"`
|
||||
ActiveRuleCount int `json:"activeRuleCount"`
|
||||
P0RuleCount int `json:"p0RuleCount"`
|
||||
}
|
||||
|
||||
type QualityAlertRule struct {
|
||||
IssueType string `json:"issueType"`
|
||||
Title string `json:"title"`
|
||||
Level string `json:"level"`
|
||||
Owner string `json:"owner"`
|
||||
Trigger string `json:"trigger"`
|
||||
Notify string `json:"notify"`
|
||||
SLA string `json:"sla"`
|
||||
Count int `json:"count"`
|
||||
}
|
||||
|
||||
type QualityNotificationPolicy struct {
|
||||
Name string `json:"name"`
|
||||
Target string `json:"target"`
|
||||
Channel string `json:"channel"`
|
||||
Condition string `json:"condition"`
|
||||
}
|
||||
|
||||
type QualityPriorityIssue struct {
|
||||
QualityIssueRow
|
||||
Priority string `json:"priority"`
|
||||
ActionLabel string `json:"actionLabel"`
|
||||
ActionDetail string `json:"actionDetail"`
|
||||
SLA string `json:"sla"`
|
||||
VehicleLabel string `json:"vehicleLabel"`
|
||||
RealtimeHash string `json:"realtimeHash"`
|
||||
HistoryHash string `json:"historyHash"`
|
||||
RawHash string `json:"rawHash"`
|
||||
VehicleHash string `json:"vehicleHash"`
|
||||
NotificationText string `json:"notificationText"`
|
||||
}
|
||||
|
||||
type OpsHealth struct {
|
||||
LinkHealth []LinkHealth `json:"linkHealth"`
|
||||
KafkaLag *int `json:"kafkaLag"`
|
||||
|
||||
Reference in New Issue
Block a user