mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 08:35:43 -06:00
21 lines
458 B
Go
21 lines
458 B
Go
|
package api
|
||
|
|
||
|
import (
|
||
|
"github.com/grafana/grafana/pkg/api/response"
|
||
|
contextmodel "github.com/grafana/grafana/pkg/services/contexthandler/model"
|
||
|
)
|
||
|
|
||
|
type HistoryApiHandler struct {
|
||
|
svc *HistorySrv
|
||
|
}
|
||
|
|
||
|
func NewStateHistoryApi(svc *HistorySrv) *HistoryApiHandler {
|
||
|
return &HistoryApiHandler{
|
||
|
svc: svc,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (f *HistoryApiHandler) handleRouteGetStateHistory(ctx *contextmodel.ReqContext) response.Response {
|
||
|
return f.svc.RouteQueryStateHistory(ctx)
|
||
|
}
|