Alerting: Add GetRuleGroups to RuleStore (#48036)

This commit adds a new method GetRuleGroups to RuleStore which returns the set of rule groups across all organizations.
This commit is contained in:
George Robinson
2022-04-21 17:59:22 +01:00
committed by GitHub
parent 9595b56f0d
commit d66fc6ed1a
3 changed files with 40 additions and 0 deletions

View File

@@ -265,7 +265,14 @@ type GetAlertRulesQuery struct {
Result []*AlertRule
}
// ListRuleGroupsQuery is the query for listing unique rule groups
// across all organizations
type ListRuleGroupsQuery struct {
Result []string
}
// ListOrgRuleGroupsQuery is the query for listing unique rule groups
// for an organization
type ListOrgRuleGroupsQuery struct {
OrgID int64
NamespaceUIDs []string