mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* Add limit query parameter * Drop copy paste comment * Extend history query limit to 30 days and 250 entries * Fix history log entries ordering * Update no history message, add empty history test --------- Co-authored-by: Konrad Lalik <konrad.lalik@grafana.com>
19 lines
346 B
Go
19 lines
346 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
|
|
Limit int
|
|
SignedInUser *user.SignedInUser
|
|
}
|