package
2.25.0-snrc.5
Repository: https://github.com/rajvikram/prometheus.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
NewEngine returns a new engine.
NewLazyLoader returns an initialized empty LazyLoader.
NewOriginContext returns a new context with data about the origin attached.
NewStorageSeries returns a StorageSeries from a Series.
NewTest returns an initialized empty Test.
PreprocessExpr wraps all possible step invariant parts of the given expression with StepInvariantExpr.

# Variables

AtModifierUnsafeFunctions are the functions whose result can vary if evaluation time is changed when the arguments are step invariant.
No description provided by the author
FunctionCalls is a list of all functions supported by PromQL, including their types.

# Structs

No description provided by the author
Engine handles the lifetime of queries from beginning to end.
EngineOpts contains configuration options used when creating a new Engine.
Entry
No description provided by the author
No description provided by the author
EvalNodeHelper stores extra information and caches for evaluating a single node across steps.
LazyLoader lazily loads samples into storage.
Point represents a single data point for a given timestamp.
No description provided by the author
Result holds the resulting value of an execution or an error if any occurred.
Sample is a single sample belonging to a metric.
Scalar is a data point that's explicitly not associated with a metric.
Series is a stream of data points belonging to a metric.
StorageSeries simulates promql.Series as storage.Series.
String represents a string value.
Test is a sequence of read and write commands that are run against a test storage.

# Interfaces

A Query is derived from an a raw query string and can be run against an engine it is associated with.
QueryLogger is an interface that can be used to log all the queries logged by the engine.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
FunctionCall is the type of a PromQL function implementation vals is a list of the evaluated arguments for the function call.
Matrix is a slice of Series that implements sort.Interface and has a String method.
Vector is basically only an alias for model.Samples, but the contract is that in a Vector, all Samples have the same timestamp.