config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateMeasureExtractionConfig

func ValidateMeasureExtractionConfig(config *MeasureExtraction) error

ValidateMeasureExtractionConfig validates the fields 'chunkSize' must be positive, specifies the number of rows the database server sends to the client at once 'limit' if > 0 limits the number of points extracted from the measure, if == 0 all data is requested 'from' and 'to' are timestamps and optional. If specified request data only between these timescamps

Types

type ExtractionConfig

type ExtractionConfig struct {
	ExtractorID       string
	MeasureExtraction *MeasureExtraction
	DataBufferSize    uint16
}

ExtractionConfig combines everything needed to create and start an Extractor

type MeasureExtraction

type MeasureExtraction struct {
	Database                    string
	Measure                     string
	From                        string
	To                          string
	ChunkSize                   uint16
	Limit                       uint64
	SchemaOnly                  bool
	RetentionPolicy             string
	OnConflictConvertIntToFloat bool
}

MeasureExtraction holds config properties for a single measure

Jump to

Keyboard shortcuts

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