Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryFilter ¶
QueryFilter stores a query limiter requested by Grafana.
type QueryRange ¶
type QueryRange struct { From string To string Raw QueryRangeRaw }
QueryRange represents a time period requested by Grafana.
type QueryRangeRaw ¶
QueryRangeRaw stores the grafana time query range as entered by user. The range values typically have relative values, such as "now-10d".
type QueryTarget ¶
QueryTarget represents a timeseries requested by Grafana or subsequence returned to Grafana of a requested timeseries where each observation is tagged by the Target field value.
type TimeSeriesManager ¶
type TimeSeriesManager interface { GetTimeSeries(target string, fromTo *QueryRange, opts *TimeSeriesQueryOpts, dest *map[string][]DataPoint) error GetTagKeys(tableName string, dest *[]TagKey) error GetTagValues(tableName string, key string, dest *[]string) error }
TimeSeriesManager exposes calls available to ReST end points to query SQLite table columns to Grafana.
type TimeSeriesQueryOpts ¶
type TimeSeriesQueryOpts struct { Interval string MaxDataPoints int32 Filters []QueryFilter }
TimeSeriesQueryOpts holds options for a query. Currently, only the MaxDataPoints field is respected by sqlite32grafana.