Alerting: declare constants for __dashboardUid__ and __panelId__ literals (#39976)

This commit is contained in:
Yuriy Tseretyan
2021-10-07 17:30:06 -04:00
committed by GitHub
parent c8651c46d0
commit 5836def6c2
6 changed files with 28 additions and 20 deletions
@@ -46,6 +46,10 @@ const (
const (
RuleUIDLabel = "__alert_rule_uid__"
NamespaceUIDLabel = "__alert_rule_namespace_uid__"
// Annotations are actually a set of labels, so technically this is the label name of an annotation.
DashboardUIDAnnotation = "__dashboardUid__"
PanelIDAnnotation = "__panelId__"
)
// AlertRule is the model for alert rules in unified alerting.