Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByTime ¶
type ByTime []IntPoint
ByTime implements Sort interface for IntPoint https://golang.org/pkg/sort/
type DoublePoint ¶
type DoubleSeries ¶
type DoubleSeries struct { Name string `json:"name"` Tags map[string]string `json:"tags"` Points []DoublePoint `json:"points"` }
type IntPoint ¶
IntPoint is a time, int pair but encoded as array in JSON format for space efficiency http://attilaolah.eu/2013/11/29/json-decoding-in-go/
func (*IntPoint) MarshalJSON ¶
MarshalJSON implements Marshaler interface https://golang.org/pkg/encoding/json/#Marshaler
func (*IntPoint) UnmarshalJSON ¶
UnmarshalJSON implements Unmarshaler interface https://golang.org/pkg/encoding/json/#Unmarshaler
type IntSeries ¶
type IntSeries struct { Name string `json:"name"` Tags map[string]string `json:"tags"` Points []IntPoint `json:"points"` }
func NewIntSeries ¶
type Query ¶
type Query struct { Name string `json:"name"` Tags map[string]string `json:"tags"` MatchPolicy string `json:"match_policy"` StartTime int64 `json:"start_time,omitempty"` EndTime int64 `json:"end_time,omitempty"` }
Query is the query against single series if in `exact` mode, possible multiple series in `contains` mode
type QueryResult ¶
QueryResult contains the original query and number of series matched
Click to show internal directories.
Click to hide internal directories.