feat(alerting): add parameteters for filtering alerts
This commit is contained in:
+4
-15
@@ -95,8 +95,10 @@ type DeleteAlertCommand struct {
|
||||
|
||||
//Queries
|
||||
type GetAlertsQuery struct {
|
||||
OrgId int64
|
||||
State []string
|
||||
OrgId int64
|
||||
State []string
|
||||
DashboardId int64
|
||||
PanelId int64
|
||||
|
||||
Result []AlertRule
|
||||
}
|
||||
@@ -114,16 +116,3 @@ type GetAlertChangesQuery struct {
|
||||
|
||||
Result []AlertRuleChange
|
||||
}
|
||||
|
||||
type GetAlertsForDashboardQuery struct {
|
||||
DashboardId int64
|
||||
|
||||
Result []AlertRule
|
||||
}
|
||||
|
||||
type GetAlertForPanelQuery struct {
|
||||
DashboardId int64
|
||||
PanelId int64
|
||||
|
||||
Result AlertRule
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user