diff --git a/rules/origin.go b/rules/origin.go index c972244a0..e78a07de5 100644 --- a/rules/origin.go +++ b/rules/origin.go @@ -10,8 +10,10 @@ type RuleDetail struct { Query string } -const KindAlerting = "alerting" -const KindRecording = "recording" +const ( + KindAlerting = "alerting" + KindRecording = "recording" +) func NewRuleDetail(name, query, kind string) RuleDetail { return RuleDetail{