mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 12:12:21 +08:00

* Define endpoint and generate * Wire up and register endpoint * Cleanup, define authorization * Forgot the leading slash * Wire up query and SignedInUser * Wire up timerange query params * Add todo for label queries * Drop comment * Update path to rules subtree
18 lines
328 B
Go
18 lines
328 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/grafana/grafana/pkg/services/user"
|
|
)
|
|
|
|
// HistoryQuery represents a query for alert state history.
|
|
type HistoryQuery struct {
|
|
RuleUID string
|
|
OrgID int64
|
|
Labels map[string]string
|
|
From time.Time
|
|
To time.Time
|
|
SignedInUser *user.SignedInUser
|
|
}
|