tspoint

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RawPoint

type RawPoint struct {
	Fields map[string]any
	Tags   map[string]string
	Tt     time.Time
	Ts     int64
}

func SinkTransform

func SinkTransform(ctx api.StreamContext, data any, options *WriteOptions) ([]*RawPoint, error)

type WriteOptions

type WriteOptions struct {
	PrecisionStr string `json:"precision"`

	Tags        map[string]string `json:"tags"`
	TsFieldName string            `json:"tsFieldName"`
}

func (*WriteOptions) Validate

func (o *WriteOptions) Validate() error

func (*WriteOptions) ValidateTagTemplates

func (o *WriteOptions) ValidateTagTemplates(ctx api.StreamContext) error

Jump to

Keyboard shortcuts

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