package
0.0.0-20220202092843-82de52efe57b
Repository: https://github.com/ovh/erlenmeyer.git
Documentation: pkg.go.dev

# Functions

IsoTime is returning the right format for Warp.
IsValid check if a label name string is Valid.
NewEmptyNode is a constructor.
NewNode is creating a new node with a specific type and Payload.
NewSimpleMacroMapper is creating a macromapper that is only modifying the value.
NewWarpServer is returning a new Warp server.
Now returns the current time as a Time.
ParseDuration parses a string into a time.Duration, assuming that a year always has 365d, a week always has 7d, and a day always has 24h.
ParsePromDuration parses a duration as a string and returns a string.
ParsePromTime returns a core.Time from string.
ParseStringDuration parses a string into a time.Duration, assuming that a year always has 365d, a week always has 7d, and a day always has 24h.
RetrieveToken from multiple sources.
TimeFromUnix returns the Time equivalent to the Unixmodel.Timet provided in seconds.
TimeFromUnixMicro returns the Time equivalent to the Unix Time t provided in nanoseconds.
TimeFromUnixNano returns the Time equivalent to the Unix Time t provided in nanoseconds.

# Constants

Earliest is the earliest Time representable.
Latest is the latest Time representable.
ShouldRemoveNameLabel WarpScript attribute key to remove name label.

# Structs

AddValuePayload is the payload to add a value to a GTS.
AggregatePayload represents an aggregation operation on a vector.
BinaryExprPayload is hodling an Op.
BucketizePayload is the payload for the bucketize function.
Context is holding the informations like token, start, end, and so on.
FetchPayload is the payload for the fetch function.
FillValuePayload is the payload to fill empty value of a GTS.
FindPayload is the payload for the find function.
FunctionPayload represents a function of the expression language and is used by function nodes.
A GeoTimeSeries as returned by Warp10 (https://warp10.io/) WarpScript returns a JSON array: Format defined at https://www.warp10.io/content/03_Documentation/03_Interacting_with_Warp_10/04_Fetching_data/02_GTS_JSON_output_format.
HTTPWarp10Server Concrete implementation.
Interval describes and interval between two timestamps.
MapperPayload is the payload to map GTS' value in the tree.
Node is the struct holding the query tree.
NumberLiteralPayload is holding a number.
QueryResult The result of a Warp10 query.
ReducerPayload is the payload to reduce GTS' value in the tree.
StorePayload is the payload to store variable in the tree.
UnaryExprPayload inverse data.
WarpScriptPayload is the payload to push WarpScript directly in the tree.

# Interfaces

Warp10Server is the abstraction of Warp10.

# Type aliases

Duration wraps time.Duration.
Time is the number of milliseconds since the epoch (1970-01-01 00:00 UTC) excluding leap seconds.