influxdb

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: MIT Imports: 5 Imported by: 5

Documentation

Overview

From is an operation that mocks the real implementation of InfluxDB's from. It is used in Flux to compile queries that resemble real queries issued against InfluxDB. Implementors of the real from are expected to replace its implementation via flux.ReplacePackageValue.

Index

Constants

View Source
const BucketsKind = "buckets"
View Source
const FromKind = "from"
View Source
const ToKind = "to"

ToKind is the kind for the `to` flux function

Variables

View Source
var ToSignature = flux.FunctionSignature(
	map[string]semantic.PolyType{
		"bucket":            semantic.String,
		"bucketID":          semantic.String,
		"org":               semantic.String,
		"orgID":             semantic.String,
		"host":              semantic.String,
		"token":             semantic.String,
		"timeColumn":        semantic.String,
		"measurementColumn": semantic.String,
		"tagColumns":        semantic.Array,
		"fieldFn": semantic.NewFunctionPolyType(semantic.FunctionPolySignature{
			Parameters: map[string]semantic.PolyType{
				"r": semantic.Tvar(1),
			},
			Required: semantic.LabelSet{"r"},
			Return:   semantic.Tvar(2),
		}),
	},
	[]string{},
)

Functions

This section is empty.

Types

type BucketsOpSpec

type BucketsOpSpec struct {
}

func (*BucketsOpSpec) Kind

func (s *BucketsOpSpec) Kind() flux.OperationKind

type BucketsProcedureSpec

type BucketsProcedureSpec struct {
	plan.DefaultCost
}

func (*BucketsProcedureSpec) Copy

func (*BucketsProcedureSpec) Kind

type FromOpSpec

type FromOpSpec struct {
	Bucket string
}

func (*FromOpSpec) Kind

func (s *FromOpSpec) Kind() flux.OperationKind

type FromProcedureSpec

type FromProcedureSpec struct {
	plan.DefaultCost
	Bucket string
}

func (*FromProcedureSpec) Copy

func (*FromProcedureSpec) Kind

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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