Documentation ¶
Index ¶
- Constants
- Variables
- type CommonMQTTOpSpec
- type ToMQTTOpSpec
- type ToMQTTProcedureSpec
- type ToMQTTTransformation
- func (t *ToMQTTTransformation) Finish(id execute.DatasetID, err error)
- func (t *ToMQTTTransformation) Process(id execute.DatasetID, tbl flux.Table) error
- func (t *ToMQTTTransformation) RetractTable(id execute.DatasetID, key flux.GroupKey) error
- func (t *ToMQTTTransformation) UpdateProcessingTime(id execute.DatasetID, pt execute.Time) error
- func (t *ToMQTTTransformation) UpdateWatermark(id execute.DatasetID, pt execute.Time) error
Constants ¶
View Source
const ( DefaultConnectMQTTTimeout = 1 * time.Second DefaultClientID = "flux-mqtt" )
View Source
const ( ToMQTTKind = "toMQTT" DefaultNameColLabel = "_measurement" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CommonMQTTOpSpec ¶ added in v0.133.0
type ToMQTTOpSpec ¶
type ToMQTTOpSpec struct { CommonMQTTOpSpec Topic string `json:"topic"` // optional in this spec Name string `json:"name"` NameColumn string `json:"nameColumn"` // either name or name_column must be set, if none is set try to use the "_measurement" column. TimeColumn string `json:"timeColumn"` TagColumns []string `json:"tagColumns"` ValueColumns []string `json:"valueColumns"` }
func (ToMQTTOpSpec) Kind ¶
func (ToMQTTOpSpec) Kind() flux.OperationKind
func (*ToMQTTOpSpec) ReadArgs ¶
func (o *ToMQTTOpSpec) ReadArgs(args flux.Arguments) error
ReadArgs loads a flux.Arguments into ToMQTTOpSpec. It sets several default values. If the time_column isn't set, it defaults to execute.TimeColLabel. If the value_column isn't set it defaults to a []string{execute.DefaultValueColLabel}.
func (*ToMQTTOpSpec) UnmarshalJSON ¶
func (o *ToMQTTOpSpec) UnmarshalJSON(b []byte) (err error)
UnmarshalJSON unmarshals and validates toMQTTOpSpec into JSON.
type ToMQTTProcedureSpec ¶
type ToMQTTProcedureSpec struct { plan.DefaultCost Spec *ToMQTTOpSpec }
func (*ToMQTTProcedureSpec) Copy ¶
func (o *ToMQTTProcedureSpec) Copy() plan.ProcedureSpec
func (*ToMQTTProcedureSpec) Kind ¶
func (o *ToMQTTProcedureSpec) Kind() plan.ProcedureKind
type ToMQTTTransformation ¶
type ToMQTTTransformation struct { execute.ExecutionNode // contains filtered or unexported fields }
func NewToMQTTTransformation ¶
func NewToMQTTTransformation(ctx context.Context, d execute.Dataset, cache execute.TableBuilderCache, spec *ToMQTTProcedureSpec) *ToMQTTTransformation
func (*ToMQTTTransformation) Finish ¶
func (t *ToMQTTTransformation) Finish(id execute.DatasetID, err error)
func (*ToMQTTTransformation) RetractTable ¶
func (*ToMQTTTransformation) UpdateProcessingTime ¶
func (*ToMQTTTransformation) UpdateWatermark ¶
Click to show internal directories.
Click to hide internal directories.