models

package
v0.0.0-...-87b7c46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatasourceSettings

type DatasourceSettings struct {
	// Loaded from root object
	URL           string
	Token         string
	Organization  string
	DefaultBucket string `json:"defaultBucket"`

	// Loaded from jsonData
	MaxSeries int `json:"maxSeries"`

	// Influx settings
	Options *influxdb2.Options
}

InfluxSettings contains config properties (share with other AWS services?)

type QueryModel

type QueryModel struct {
	RawQuery string       `json:"query"`
	Options  QueryOptions `json:"options"`

	// Not from JSON
	TimeRange     backend.TimeRange `json:"-"`
	MaxDataPoints int64             `json:"-"`
	Interval      time.Duration     `json:"-"`
}

QueryModel represents a spreadsheet query.

func GetQueryModel

func GetQueryModel(query backend.DataQuery) (*QueryModel, error)

type QueryOptions

type QueryOptions struct {
	Bucket        string `json:"bucket"`
	DefaultBucket string `json:"defaultBucket"`
	Organization  string `json:"organization"`
}

QueryOptions represents datasource configuration options

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL