Skip to main content

workload_from_otlp_json

Function workload_from_otlp_json 

Source
pub fn workload_from_otlp_json(
    root: &Value,
    names: &OtlpMetricNames,
) -> Result<WorkloadConfig, PoolsimError>
Expand description

Builds a workload from OTLP JSON metrics.

ยงErrors

Returns PoolsimError::InvalidInput when any configured metric is missing or does not contain a numeric datapoint.