Alerting: Refactor API endpoints for fetching alert rules (#37055)

* Refactor ruler API endpoint for listing rules

* Refactor prometheus API endpoint for listing rules

* Update HTTP API docs
This commit is contained in:
Sofia Papagiannaki
2021-07-22 09:53:14 +03:00
committed by GitHub
parent 9cd8e11c30
commit 7815ed511f
8 changed files with 93 additions and 42 deletions
+4 -2
View File
@@ -133,7 +133,8 @@ type GetAlertRuleByUIDQuery struct {
// ListAlertRulesQuery is the query for listing alert rules
type ListAlertRulesQuery struct {
OrgID int64
OrgID int64
NamespaceUIDs []string
Result []*AlertRule
}
@@ -159,7 +160,8 @@ type ListRuleGroupAlertRulesQuery struct {
// ListOrgRuleGroupsQuery is the query for listing unique rule groups
type ListOrgRuleGroupsQuery struct {
OrgID int64
OrgID int64
NamespaceUIDs []string
Result [][]string
}