Skip to content

VectorExprBuilder🔗

Constructor🔗

func NewVectorExprBuilder() *VectorExprBuilder

Methods🔗

Build🔗

Builds the object.

func (builder *VectorExprBuilder) Build() (Expr, error)

At🔗

The at (or @) modifier allows changing the evaluation time for individual instant and range vectors in a query.

The time supplied to the @ modifier is a unix timestamp.

https://prometheus.io/docs/prometheus/latest/querying/basics/#modifier

func (builder *VectorExprBuilder) At(at string) *VectorExprBuilder

Label🔗

func (builder *VectorExprBuilder) Label(name string, value string) *VectorExprBuilder

LabelMatchRegexp🔗

func (builder *VectorExprBuilder) LabelMatchRegexp(name string, value string) *VectorExprBuilder

LabelNeq🔗

func (builder *VectorExprBuilder) LabelNeq(name string, value string) *VectorExprBuilder

LabelNotMatchRegexp🔗

func (builder *VectorExprBuilder) LabelNotMatchRegexp(name string, value string) *VectorExprBuilder

Labels🔗

Label selectors used to filter the timeseries.

func (builder *VectorExprBuilder) Labels(labels []cog.Builder[promql.LabelSelector]) *VectorExprBuilder

Metric🔗

Metric name.

func (builder *VectorExprBuilder) Metric(metric string) *VectorExprBuilder

Offset🔗

The offset modifier allows changing the time offset for individual instant and range vectors in a query.

https://prometheus.io/docs/prometheus/latest/querying/basics/#offset-modifier

func (builder *VectorExprBuilder) Offset(offset string) *VectorExprBuilder

Range🔗

Range of samples back from the current instant.

https://prometheus.io/docs/prometheus/latest/querying/basics/#range-vector-selectors

func (builder *VectorExprBuilder) Range(rangeArg string) *VectorExprBuilder

See also🔗