39 lines
664 B
Go
39 lines
664 B
Go
package alerting
|
|
|
|
type AlertJob struct {
|
|
Offset int64
|
|
Delay bool
|
|
Running bool
|
|
RetryCount int
|
|
Rule *AlertRule
|
|
}
|
|
|
|
type AlertResult struct {
|
|
State string
|
|
ActualValue float64
|
|
Duration float64
|
|
Description string
|
|
Error error
|
|
AlertJob *AlertJob
|
|
}
|
|
|
|
type AlertRule struct {
|
|
Id int64
|
|
OrgId int64
|
|
DatasourceId int64
|
|
DashboardId int64
|
|
PanelId int64
|
|
Query string
|
|
QueryRefId string
|
|
WarnLevel float64
|
|
CritLevel float64
|
|
WarnOperator string
|
|
CritOperator string
|
|
Frequency int64
|
|
Name string
|
|
Description string
|
|
QueryRange int
|
|
Aggregator string
|
|
State string
|
|
}
|