Documentation ¶
Overview ¶
Package influxdb implements the standard library functions for interacting with influxdb. It uses the influxdb dependency from the dependencies/influxdb package to implement the builtins.
Index ¶
- Constants
- Variables
- func CreateSource(id execute.DatasetID, spec RemoteProcedureSpec, a execute.Administration) (execute.Source, error)
- type BucketsOpSpec
- type BucketsProcedureSpec
- func (s *BucketsProcedureSpec) Copy() plan.ProcedureSpec
- func (s *BucketsProcedureSpec) GetHost() *string
- func (s *BucketsProcedureSpec) GetOrg() *NameOrID
- func (s *BucketsProcedureSpec) GetToken() *string
- func (s *BucketsProcedureSpec) Kind() plan.ProcedureKind
- func (s *BucketsProcedureSpec) PostPhysicalValidate(id plan.NodeID) error
- func (s *BucketsProcedureSpec) SetHost(host *string)
- func (s *BucketsProcedureSpec) SetOrg(org *NameOrID)
- func (s *BucketsProcedureSpec) SetToken(token *string)
- type BucketsRemoteProcedureSpec
- type BucketsRemoteRule
- type CardinalityOpSpec
- type CardinalityProcedureSpec
- type Config
- type DefaultFromAttributes
- type Dependency
- type FromOpSpec
- type FromProcedureSpec
- func (s *FromProcedureSpec) Copy() plan.ProcedureSpec
- func (s *FromProcedureSpec) GetHost() *string
- func (s *FromProcedureSpec) GetOrg() *NameOrID
- func (s *FromProcedureSpec) GetToken() *string
- func (s *FromProcedureSpec) Kind() plan.ProcedureKind
- func (s *FromProcedureSpec) PostPhysicalValidate(id plan.NodeID) error
- func (s *FromProcedureSpec) SetHost(host *string)
- func (s *FromProcedureSpec) SetOrg(org *NameOrID)
- func (s *FromProcedureSpec) SetToken(token *string)
- type FromRemoteProcedureSpec
- type FromRemoteRule
- type MergeRemoteFilterRule
- type MergeRemoteRangeRule
- type NameOrID
- type Predicate
- type PredicateSet
- type ProcedureSpec
- type Provider
- type RemoteProcedureSpec
- type RowMetric
- type ToOpSpec
- type ToProcedureSpec
- type ToTransformation
- func (t *ToTransformation) Finish(id execute.DatasetID, err error)
- func (t *ToTransformation) Process(id execute.DatasetID, tbl flux.Table) error
- func (t *ToTransformation) RetractTable(id execute.DatasetID, key flux.GroupKey) error
- func (t *ToTransformation) UpdateProcessingTime(id execute.DatasetID, pt execute.Time) error
- func (t *ToTransformation) UpdateWatermark(id execute.DatasetID, pt execute.Time) error
- type UnimplementedProvider
- type Writer
Constants ¶
const ( BucketsKind = "buckets" BucketsRemoteKind = "influxdata/influxdb.bucketsRemote" )
const ( CardinalityFuncName = "cardinality" CardinalityKind = PackageName + "." + CardinalityFuncName )
const ( DefaultMeasurementColLabel = "_measurement" DefaultFieldColLabel = "_field" )
const ( PackageName = "influxdata/influxdb" FromKind = "from" FromRemoteKind = "influxdata/influxdb.fromRemote" )
const ToKind = "to"
ToKind is the kind for the `to` flux function
Variables ¶
Functions ¶
func CreateSource ¶ added in v0.68.0
func CreateSource(id execute.DatasetID, spec RemoteProcedureSpec, a execute.Administration) (execute.Source, error)
Types ¶
type BucketsOpSpec ¶
func (*BucketsOpSpec) Kind ¶
func (s *BucketsOpSpec) Kind() flux.OperationKind
type BucketsProcedureSpec ¶
type BucketsProcedureSpec struct { plan.DefaultCost Org *NameOrID Host *string Token *string }
func (*BucketsProcedureSpec) Copy ¶
func (s *BucketsProcedureSpec) Copy() plan.ProcedureSpec
func (*BucketsProcedureSpec) GetHost ¶ added in v0.68.0
func (s *BucketsProcedureSpec) GetHost() *string
func (*BucketsProcedureSpec) GetOrg ¶ added in v0.68.0
func (s *BucketsProcedureSpec) GetOrg() *NameOrID
func (*BucketsProcedureSpec) GetToken ¶ added in v0.68.0
func (s *BucketsProcedureSpec) GetToken() *string
func (*BucketsProcedureSpec) Kind ¶
func (s *BucketsProcedureSpec) Kind() plan.ProcedureKind
func (*BucketsProcedureSpec) PostPhysicalValidate ¶ added in v0.68.0
func (s *BucketsProcedureSpec) PostPhysicalValidate(id plan.NodeID) error
func (*BucketsProcedureSpec) SetHost ¶ added in v0.68.0
func (s *BucketsProcedureSpec) SetHost(host *string)
func (*BucketsProcedureSpec) SetOrg ¶ added in v0.68.0
func (s *BucketsProcedureSpec) SetOrg(org *NameOrID)
func (*BucketsProcedureSpec) SetToken ¶ added in v0.68.0
func (s *BucketsProcedureSpec) SetToken(token *string)
type BucketsRemoteProcedureSpec ¶ added in v0.68.0
type BucketsRemoteProcedureSpec struct { plan.DefaultCost *BucketsProcedureSpec }
func (*BucketsRemoteProcedureSpec) BuildQuery ¶ added in v0.68.0
func (s *BucketsRemoteProcedureSpec) BuildQuery() *ast.File
func (*BucketsRemoteProcedureSpec) Copy ¶ added in v0.68.0
func (s *BucketsRemoteProcedureSpec) Copy() plan.ProcedureSpec
func (*BucketsRemoteProcedureSpec) Kind ¶ added in v0.68.0
func (s *BucketsRemoteProcedureSpec) Kind() plan.ProcedureKind
func (*BucketsRemoteProcedureSpec) PostPhysicalValidate ¶ added in v0.68.0
func (s *BucketsRemoteProcedureSpec) PostPhysicalValidate(id plan.NodeID) error
type BucketsRemoteRule ¶ added in v0.68.0
type BucketsRemoteRule struct{}
func (BucketsRemoteRule) Name ¶ added in v0.68.0
func (p BucketsRemoteRule) Name() string
func (BucketsRemoteRule) Pattern ¶ added in v0.68.0
func (p BucketsRemoteRule) Pattern() plan.Pattern
type CardinalityOpSpec ¶ added in v0.92.0
type CardinalityOpSpec struct { influxdb.Config Start flux.Time Stop flux.Time Predicate influxdb.Predicate }
func (*CardinalityOpSpec) Kind ¶ added in v0.92.0
func (s *CardinalityOpSpec) Kind() flux.OperationKind
type CardinalityProcedureSpec ¶ added in v0.92.0
type CardinalityProcedureSpec struct { plan.DefaultCost influxdb.Config Bounds flux.Bounds PredicateSet influxdb.PredicateSet }
func (*CardinalityProcedureSpec) Copy ¶ added in v0.92.0
func (s *CardinalityProcedureSpec) Copy() plan.ProcedureSpec
func (*CardinalityProcedureSpec) Kind ¶ added in v0.92.0
func (s *CardinalityProcedureSpec) Kind() plan.ProcedureKind
func (*CardinalityProcedureSpec) TimeBounds ¶ added in v0.92.0
func (s *CardinalityProcedureSpec) TimeBounds(predecessorBounds *plan.Bounds) *plan.Bounds
TimeBounds implements plan.BoundsAwareProcedureSpec
type Config ¶ added in v0.92.0
Config contains the common configuration for interacting with an influxdb instance.
type DefaultFromAttributes ¶ added in v0.68.0
DefaultFromAttributes is used to inject default attributes for the various from attributes.
This rule is not added by default. Each process must fill out the suitable defaults and add the rule on startup.
func (DefaultFromAttributes) Name ¶ added in v0.68.0
func (d DefaultFromAttributes) Name() string
func (DefaultFromAttributes) Pattern ¶ added in v0.68.0
func (d DefaultFromAttributes) Pattern() plan.Pattern
type Dependency ¶ added in v0.125.0
type Dependency = influxdb.Dependency
type FromOpSpec ¶
func (*FromOpSpec) Kind ¶
func (s *FromOpSpec) Kind() flux.OperationKind
type FromProcedureSpec ¶
type FromProcedureSpec struct { plan.DefaultCost Org *NameOrID Bucket NameOrID Host *string Token *string }
func (*FromProcedureSpec) Copy ¶
func (s *FromProcedureSpec) Copy() plan.ProcedureSpec
func (*FromProcedureSpec) GetHost ¶ added in v0.68.0
func (s *FromProcedureSpec) GetHost() *string
func (*FromProcedureSpec) GetOrg ¶ added in v0.68.0
func (s *FromProcedureSpec) GetOrg() *NameOrID
func (*FromProcedureSpec) GetToken ¶ added in v0.68.0
func (s *FromProcedureSpec) GetToken() *string
func (*FromProcedureSpec) Kind ¶
func (s *FromProcedureSpec) Kind() plan.ProcedureKind
func (*FromProcedureSpec) PostPhysicalValidate ¶
func (s *FromProcedureSpec) PostPhysicalValidate(id plan.NodeID) error
func (*FromProcedureSpec) SetHost ¶ added in v0.68.0
func (s *FromProcedureSpec) SetHost(host *string)
func (*FromProcedureSpec) SetOrg ¶ added in v0.68.0
func (s *FromProcedureSpec) SetOrg(org *NameOrID)
func (*FromProcedureSpec) SetToken ¶ added in v0.68.0
func (s *FromProcedureSpec) SetToken(token *string)
type FromRemoteProcedureSpec ¶ added in v0.68.0
type FromRemoteProcedureSpec struct { plan.DefaultCost influxdb.Config Bounds flux.Bounds PredicateSet influxdb.PredicateSet }
func (*FromRemoteProcedureSpec) Copy ¶ added in v0.68.0
func (s *FromRemoteProcedureSpec) Copy() plan.ProcedureSpec
func (*FromRemoteProcedureSpec) Kind ¶ added in v0.68.0
func (s *FromRemoteProcedureSpec) Kind() plan.ProcedureKind
func (*FromRemoteProcedureSpec) PostPhysicalValidate ¶ added in v0.68.0
func (s *FromRemoteProcedureSpec) PostPhysicalValidate(id plan.NodeID) error
func (*FromRemoteProcedureSpec) TimeBounds ¶ added in v0.68.0
func (s *FromRemoteProcedureSpec) TimeBounds(predecessorBounds *plan.Bounds) *plan.Bounds
TimeBounds implements plan.BoundsAwareProcedureSpec
type FromRemoteRule ¶ added in v0.68.0
type FromRemoteRule struct{}
func (FromRemoteRule) Name ¶ added in v0.68.0
func (p FromRemoteRule) Name() string
func (FromRemoteRule) Pattern ¶ added in v0.68.0
func (p FromRemoteRule) Pattern() plan.Pattern
type MergeRemoteFilterRule ¶ added in v0.68.0
type MergeRemoteFilterRule struct{}
func (MergeRemoteFilterRule) Name ¶ added in v0.68.0
func (p MergeRemoteFilterRule) Name() string
func (MergeRemoteFilterRule) Pattern ¶ added in v0.68.0
func (p MergeRemoteFilterRule) Pattern() plan.Pattern
type MergeRemoteRangeRule ¶ added in v0.68.0
type MergeRemoteRangeRule struct{}
func (MergeRemoteRangeRule) Name ¶ added in v0.68.0
func (p MergeRemoteRangeRule) Name() string
func (MergeRemoteRangeRule) Pattern ¶ added in v0.68.0
func (p MergeRemoteRangeRule) Pattern() plan.Pattern
type NameOrID ¶ added in v0.68.0
NameOrID signifies the name of an organization/bucket or an ID for an organization/bucket.
type PredicateSet ¶ added in v0.92.0
type PredicateSet = influxdb.PredicateSet
PredicateSet holds a set of predicates that will filter the results.
type ProcedureSpec ¶ added in v0.68.0
type Provider ¶ added in v0.121.0
func GetProvider ¶ added in v0.121.0
type RemoteProcedureSpec ¶ added in v0.68.0
type ToOpSpec ¶ added in v0.117.0
type ToOpSpec struct { Bucket string `json:"bucket"` BucketID string `json:"bucketID"` Org string `json:"org"` OrgID string `json:"orgID"` Host string `json:"host"` Token string `json:"token"` TimeColumn string `json:"timeColumn"` MeasurementColumn string `json:"measurementColumn"` TagColumns []string `json:"tagColumns"` FieldFn interpreter.ResolvedFunction `json:"fieldFn"` }
ToOpSpec is the flux.OperationSpec for the `to` flux function.
func (ToOpSpec) Kind ¶ added in v0.117.0
func (ToOpSpec) Kind() flux.OperationKind
Kind returns the kind for the ToOpSpec function.
type ToProcedureSpec ¶ added in v0.117.0
type ToProcedureSpec struct { plan.DefaultCost Spec *ToOpSpec }
ToProcedureSpec is the procedure spec for the `to` flux function.
func (*ToProcedureSpec) Copy ¶ added in v0.117.0
func (o *ToProcedureSpec) Copy() plan.ProcedureSpec
Copy clones the procedure spec for `to` flux function.
func (*ToProcedureSpec) Kind ¶ added in v0.117.0
func (o *ToProcedureSpec) Kind() plan.ProcedureKind
Kind returns the kind for the procedure spec for the `to` flux function.
type ToTransformation ¶ added in v0.117.0
type ToTransformation struct { execute.ExecutionNode // contains filtered or unexported fields }
ToTransformation is the transformation for the `to` flux function.
func NewToTransformation ¶ added in v0.117.0
func NewToTransformation(ctx context.Context, d execute.Dataset, cache execute.TableBuilderCache, spec *ToProcedureSpec, deps influxdb.Provider) (*ToTransformation, error)
NewToTransformation returns a new *ToTransformation with the appropriate fields set.
func (*ToTransformation) Finish ¶ added in v0.117.0
func (t *ToTransformation) Finish(id execute.DatasetID, err error)
Finish is called after the `to` flux function's transformation is done processing.
func (*ToTransformation) Process ¶ added in v0.117.0
Process does the actual work for the ToTransformation.
func (*ToTransformation) RetractTable ¶ added in v0.117.0
RetractTable retracts the table for the transformation for the `to` flux function.
func (*ToTransformation) UpdateProcessingTime ¶ added in v0.117.0
UpdateProcessingTime updates the processing time for the transformation for the `to` flux function.
func (*ToTransformation) UpdateWatermark ¶ added in v0.117.0
UpdateWatermark updates the watermark for the transformation for the `to` flux function.
type UnimplementedProvider ¶ added in v0.125.0
type UnimplementedProvider = influxdb.UnimplementedProvider