Documentation
¶
Index ¶
Constants ¶
View Source
const ( ALERT_RULE = "alert_rule.yaml" ANALYZER_EXPRESSION = "analyzer_expression.json" NOTIFY_TEMPLATE = "notify_template.yaml" ZHLange = "zh-CN" ENLange = "en-US" )
Variables ¶
View Source
var WindowKeys = []int64{1, 3, 5, 10, 15, 30}
Functions ¶
This section is empty.
Types ¶
type AlertConfig ¶
type AlertRule ¶
type AlertRule struct {
ExpressionConfig *AlertConfig
Expression *Expression
Template []*NotifyTemplate
}
type Expression ¶
type NotifyTemplate ¶
type NotifyTemplate struct {
Name string `json:"name"`
AlertType string `json:"alert_type"`
AlertIndex string `json:"alert_index"`
Target string `json:"target"`
Trigger string `json:"trigger"`
Title string `json:"title"`
Template string `json:"template"`
Formats map[string]interface{} `json:"formats"`
Version string `json:"version"`
Language string `json:"language"`
}
Click to show internal directories.
Click to hide internal directories.