package
1.0.0
Repository: https://github.com/grafana/carbonapi.git
Documentation: pkg.go.dev

# Functions

AggKey returns joined by dot nodes of tags names.
AggregateSeries aggregates series.
AlignSeries aligns different series together.
AlignStartToInterval aligns start of serie to interval.
AlignToBucketSize aligns start and stop of serie to specified bucket (step) size.
Contains check if slice 'a' contains value 'i'.
ExtractMetric extracts metric out of function list.
ForEachSeriesDo do action for each serie in list.
GCD returns greatest common divisor calculated via Euclidean algorithm.
GetBuckets returns amount buckets for timeSeries (defined with startTime, stopTime and step (bucket) size.
GetCommonStep returns LCM(steps), changed (bool) for slice of metrics.
GetSeriesArg returns argument from series.
GetSeriesArgs returns arguments of series.
GetSeriesArgsAndRemoveNonExisting will fetch all required arguments, but will also filter out non existing Series This is needed to be graphite-web compatible in cases when you pass non-existing Series to, for example, sumSeries.
LCM returns the least common multiple of 2 or more integers via GDB.
RemoveEmptySeriesFromName removes empty series from list of names.
ScaleToCommonStep returns the metrics, aligned LCM of all metrics steps.
ScaleValuesToCommonStep returns map[parser.MetricRequest][]*types.MetricData.
SetEvaluator sets evaluator for all helper functions.

# Variables

Backref is a pre-compiled expression for backref.
ExtrapolatePoints defines if we should extrapolate when we are aligning series together.

# Structs

ByVals sorts by values Total (sortByTotal), max (sortByMaxima), min (sortByMinima) sorting For 'min', we actually store 1/v so the sorting logic is the same.

# Type aliases

AggregateFunc type that defined aggregate function.
ByName sorts metrics by name.
ByNameNatural sorts metric naturally by name.
ErrUnknownFunction is an error message about unknown function.