Documentation ¶
Index ¶
- Variables
- func GenerateQueries(elements []model.QueriesRequestElement, timeDirection model.Direction) (query string, err error)
- type Client
- type Influx
- func (this *Influx) ExecuteQuery(db string, query string) (responseP *influxLib.Response, err error)
- func (this *Influx) GetLatestValue(db string, pair RequestElement) (timeValuePair TimeValuePair, err error)
- func (this *Influx) GetLatestValues(db string, pairs []RequestElement) (timeValuePairs []TimeValuePair, err error)
- func (this *Influx) GetTags(db string, measurement string) (tagMap map[string][]string, err error)
- type RequestElement
- type TimeValuePair
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInfluxConnection = errors.New("communication with InfluxDB failed")
View Source
var ErrNULL = errors.New("NULL response")
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func GenerateQueries ¶
Types ¶
type Influx ¶
type Influx struct {
// contains filtered or unexported fields
}
func (*Influx) ExecuteQuery ¶
func (*Influx) GetLatestValue ¶
func (this *Influx) GetLatestValue(db string, pair RequestElement) (timeValuePair TimeValuePair, err error)
func (*Influx) GetLatestValues ¶
func (this *Influx) GetLatestValues(db string, pairs []RequestElement) (timeValuePairs []TimeValuePair, err error)
type RequestElement ¶
type TimeValuePair ¶
type TimeValuePair struct { Time *string `json:"time"` Value interface{} `json:"value"` }
Click to show internal directories.
Click to hide internal directories.