aggregate

package
v0.0.0-...-9625d7e Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMetricNameKeyMap

func GenerateMetricNameKeyMap(metrics *[]model.Metric) map[string]*model.Metric

GenerateMetricNameKeyMap ...

Types

type AggregatorInterface

type AggregatorInterface interface {
	Aggregate(metricSlice model.InputMetricSlice) *model.InputMetric
}

AggregatorInterface for metric aggregate

type AvgValue

type AvgValue struct {
}

AvgValue is the average result type for Aggregate

func (*AvgValue) Aggregate

func (averageValue *AvgValue) Aggregate(input model.InputMetricSlice) *model.InputMetric

Aggregate implement the average aggregator

type MaxValue

type MaxValue struct {
}

MaxValue is the max result type for Aggregate

func (*MaxValue) Aggregate

func (maxValue *MaxValue) Aggregate(input model.InputMetricSlice) *model.InputMetric

Aggregate implement the max aggregator

type MinValue

type MinValue struct {
}

MinValue is the min result type for Aggregate

func (*MinValue) Aggregate

func (minValue *MinValue) Aggregate(input model.InputMetricSlice) *model.InputMetric

Aggregate implement the min aggregator

Jump to

Keyboard shortcuts

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