Skip to main content

Module broadcast

Module broadcast 

Source

Enums§

NonFloatSample 🔒
Calls calculate(left, right, vector_sample) at each index where both operands exist. What a vector sample that holds no float value means to the kernel being applied.
ParameterizedMath
A math function whose parameters are scalar expressions, which Prometheus evaluates at every step, with those parameters as time-varying scalars.
PointMath 🔒
What one point’s parameter values make of a parameterized math function: the kernel that reads the input’s own value, with everything else the point decides already bound.
ScalarFunction 🔒
max_of(a, b) and min_of(a, b), which Prometheus evaluates with Go’s math.Max and math.Min.
ScalarSeriesOperand
A time-varying, unlabelled single-field scalar, with explicit operand direction.

Functions§

map_arithmetic_series
Applies arithmetic between vector fields and a time-varying scalar, aligned by absolute grid index, and drops the metric name.
map_compare_series
Compares against a time-varying scalar. Filter keeps vector values and labels; bool emits 0/1 and drops the metric name.
map_grid_scalar 🔒
map_math_with_parameters
Applies function to every field with its parameters read at each point from time-varying scalars, and drops the metric name, as crate::map::map_math does with constant parameters; native histogram samples are skipped the same way.
validate_scalar 🔒