Skip to main content

metric_value

Function metric_value 

Source
pub fn metric_value(root: &Value, name: &str) -> Result<f64, PoolsimError>
Expand description

Extracts the first numeric datapoint from a named OTLP metric.

ยงErrors

Returns PoolsimError::InvalidInput when the metric is absent or no numeric datapoint can be found.