2023-01-19 03:45:31 -06:00
|
|
|
package models
|
|
|
|
|
2023-02-02 11:34:00 -06:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
2023-11-14 08:47:34 -06:00
|
|
|
"github.com/grafana/grafana/pkg/services/auth/identity"
|
2023-02-02 11:34:00 -06:00
|
|
|
)
|
2023-01-19 03:45:31 -06:00
|
|
|
|
|
|
|
// HistoryQuery represents a query for alert state history.
|
|
|
|
type HistoryQuery struct {
|
2023-02-02 11:34:00 -06:00
|
|
|
RuleUID string
|
|
|
|
OrgID int64
|
2023-07-24 23:46:46 -05:00
|
|
|
DashboardUID string
|
|
|
|
PanelID int64
|
2023-02-02 11:34:00 -06:00
|
|
|
Labels map[string]string
|
|
|
|
From time.Time
|
|
|
|
To time.Time
|
2023-06-28 13:32:28 -05:00
|
|
|
Limit int
|
2023-11-14 08:47:34 -06:00
|
|
|
SignedInUser identity.Requester
|
2023-01-19 03:45:31 -06:00
|
|
|
}
|