Skip to main content

samples_to_data

Function samples_to_data 

Source
fn samples_to_data(
    buffer: IndexMap<Vec<(String, String)>, PromSeriesSamples>,
    result_type: ValueType,
) -> Result<PrometheusResponse>
Expand description

Assemble the per-series samples of buffer into the data of a Prometheus HTTP API response of result_type.