grafana/pkg/services/ngalert/models/history.go
Jo 580477bf8e
NGAlerting: Use identity.Requester interface instead of SignedInUser (#76360)
* unfurl SignedInUserAttrs services

* replace signedInUser with Requester

replace signedInUser with requester

* fix tests

* linting

---------

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2023-11-14 14:47:34 +00:00

21 lines
396 B
Go

package models
import (
"time"
"github.com/grafana/grafana/pkg/services/auth/identity"
)
// HistoryQuery represents a query for alert state history.
type HistoryQuery struct {
RuleUID string
OrgID int64
DashboardUID string
PanelID int64
Labels map[string]string
From time.Time
To time.Time
Limit int
SignedInUser identity.Requester
}