Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnknownQuery = errors.New("unknown query")
)
View Source
var QUERIES = map[string]string{}/* 187 elements not displayed */
View Source
var RecordingRules = map[string]func(p *db.Project, w *model.World) []model.MetricValues{ // contains filtered or unexported fields }
Functions ¶
This section is empty.
Types ¶
type Cache ¶ added in v1.5.0
type Cache interface { QueryRange(ctx context.Context, query string, from, to timeseries.Time, step timeseries.Duration, fillFunc timeseries.FillFunc) ([]model.MetricValues, error) GetStep(from, to timeseries.Time) (timeseries.Duration, error) }
type Constructor ¶
type Constructor struct {
// contains filtered or unexported fields
}
func (*Constructor) LoadWorld ¶
func (c *Constructor) LoadWorld(ctx context.Context, from, to timeseries.Time, step timeseries.Duration, prof *Profile) (*model.World, error)
type Profile ¶
type Profile struct { Stages map[string]float32 `json:"stages"` Queries map[string]QueryStats `json:"queries"` }
type QueryStats ¶
Click to show internal directories.
Click to hide internal directories.