We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cebeea commit e80c13fCopy full SHA for e80c13f
i18n/en/alert_template.toml
@@ -2,6 +2,7 @@ alert-notification = "Alert Notification"
2
alert-level-status = "Level Status"
3
alert-rule-name = "Rule Name"
4
alert-rule-notes = "Rule Notes"
5
+alert-rule-description = "Rule Description"
6
alert-monitoring-metrics = "Monitoring Metrics"
7
alert-trigger-time = "Trigger Time"
8
alert-trigger-value = "Trigger Value"
i18n/zh-CN/alert_template.toml
@@ -2,6 +2,7 @@ alert-notification = "告警通知"
alert-level-status = "级别状态"
alert-rule-name = "规则名称"
alert-rule-notes = "规则备注"
+alert-rule-description = "规则描述"
alert-monitoring-metrics = "监控指标"
alert-trigger-time = "触发时间"
alert-trigger-value = "触发时值"
i18n/zh-TW/alert_template.toml
@@ -2,6 +2,7 @@ alert-notification = "警報通知"
alert-level-status = "等級狀態"
alert-rule-name = "規則名稱"
alert-rule-notes = "規則備註"
+alert-rule-description = "規則描述"
alert-monitoring-metrics = "監控指標"
alert-trigger-time = "觸發時間"
alert-trigger-value = "觸發時值"
internal/logic/feishu/feishu.go
@@ -42,6 +42,7 @@ func (u *sFeishu) Send(ctx context.Context, req *v1.FeishuReq) error {
42
webhookAlert.Severity = alert.Labels["severity"]
43
webhookAlert.RuleName = alert.Labels["alertname"]
44
webhookAlert.RuleNotes = alert.Annotations["summary"]
45
+ webhookAlert.Description = alert.Annotations["description"]
46
webhookAlert.TriggerTime = alert.StartsAt.Format(time.RFC3339)
47
webhookAlert.LastEvalTime = alert.EndsAt.Format(time.RFC3339)
48
webhookAlert.TriggerValue = alert.Annotations["value"]
internal/model/template.go
@@ -5,6 +5,7 @@ type WebhookAlert struct {
IsRecovered bool
RuleName string
RuleNotes string
+ Description string
9
TagsJSON string
10
LastEvalTime string
11
TriggerTime string
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments