Skip to content

VectorExpr🔗

Constructor🔗

VectorExpr()

Methods🔗

build🔗

Builds the object.

def build() -> promql.VectorExpr

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

def at(at: str) -> typing.Self

label🔗

def label(name: str, value: str) -> typing.Self

label_match_regexp🔗

def label_match_regexp(name: str, value: str) -> typing.Self

label_neq🔗

def label_neq(name: str, value: str) -> typing.Self

label_not_match_regexp🔗

def label_not_match_regexp(name: str, value: str) -> typing.Self

labels🔗

Label selectors used to filter the timeseries.

def labels(labels: list[cogbuilder.Builder[promql.LabelSelector]]) -> typing.Self

metric🔗

Metric name.

def metric(metric: str) -> typing.Self

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

def offset(offset: str) -> typing.Self

range_val🔗

Range of samples back from the current instant.

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

def range_val(range_val: str) -> typing.Self

See also🔗