Skip to main content

range_function

Function range_function 

Source
fn range_function(name: &str) -> Option<RangeFunction>
Expand description

The range function a PromQL name denotes, or None when this compiler has no kernel for it.

The map is explicit on purpose: a name that is not listed here is rejected, so supporting one more function is a decision made in one place rather than a consequence of a name looking familiar.