openvm_stark_sdk::bench

Function serialize_metric_snapshot

Source
pub fn serialize_metric_snapshot(snapshot: Snapshot) -> Value
Expand description

Serialize a metric snapshot into a JSON object. The object has the following structure: { “gauge”: [ { “metric”: , “labels”: [ (, ), (, ), ], “value”: }, … ], … }