aggregateprocessor

package
v0.0.0-...-51da36d Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "aggregateprocessor"

Variables

This section is empty.

Functions

func New

func New(config interface{}, telemetry *component.TelemetryTools, nextConsumer consumer.Consumer) processor.Processor

Types

type AggregateProcessor

type AggregateProcessor struct {
	// contains filtered or unexported fields
}

func (*AggregateProcessor) Consume

func (p *AggregateProcessor) Consume(dataGroup *model.DataGroup) error

type AggregatedKindConfig

type AggregatedKindConfig struct {
	OutputName         string  `mapstructure:"output_name"`
	Kind               string  `mapstructure:"kind"`
	ExplicitBoundaries []int64 `mapstructure:"explicit_boundaries"`
}

type Config

type Config struct {
	// The unit is second.
	TickerInterval int `mapstructure:"ticker_interval"`

	AggregateKindMap map[string][]AggregatedKindConfig `mapstructure:"aggregate_kind_map"`
	SamplingRate     *SampleConfig                     `mapstructure:"sampling_rate"`
}

func NewDefaultConfig

func NewDefaultConfig() *Config

type SampleConfig

type SampleConfig struct {
	NormalData int `mapstructure:"normal_data"`
	SlowData   int `mapstructure:"slow_data"`
	ErrorData  int `mapstructure:"error_data"`
}

Jump to

Keyboard shortcuts

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