package
0.1.0
Repository: https://github.com/ksurent/carbonapi.git
Documentation: pkg.go.dev

# Functions

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.
AvgValue returns average of list of values.
Contains check if slice 'a' contains value 'i'.
CurrentValue returns last non-absent value (if any), otherwise returns NaN.
ExtractMetric extracts metric out of function list.
ForEachSeriesDo do action for each serie in list.
GetBuckets returns amount buckets for timeSeries (defined with startTime, stopTime and step (bucket) size.
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.
MaxValue returns maximum from the list.
MinValue returns minimal from the list.
Percentile returns percent-th percentile.
Poly computes polynom with specified coefficients.
RemoveEmptySeriesFromName removes empty series from list of names.
SetEvaluator sets evaluator for all helper functions.
SummarizeValues summarizes values.
Vandermonde creates a Vandermonde matrix.
VarianceValue gets variances of list of values.

# 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.