pub fn serialize_metric_snapshot(snapshot: Snapshot) -> Value
Serialize a metric snapshot into a JSON object. The object has the following structure: { “gauge”: [ { “metric”: , “labels”: [ (, ), (, ), ], “value”: }, … ], … }