mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 08:13:47 +08:00
feat(alerting): add api endpoints for listing alerts
This commit is contained in:
@ -82,3 +82,16 @@ type SaveAlertsCommand struct {
|
||||
|
||||
Alerts *[]AlertRule
|
||||
}
|
||||
|
||||
//Queries
|
||||
type GetAlertsQuery struct {
|
||||
OrgId int64
|
||||
|
||||
Result []AlertRule
|
||||
}
|
||||
|
||||
type GetAlertById struct {
|
||||
Id int64
|
||||
|
||||
Result AlertRule
|
||||
}
|
||||
|
Reference in New Issue
Block a user