Skip to main content

Module GetMetrics

Module GetMetrics 

Source
Expand description

AirClient::GetMetrics - fetches a metrics snapshot from the Air daemon. The wire response is a HashMap<String, String> so the daemon can ship arbitrary keys; this method extracts the canonical numeric fields (AirMetrics::Struct) by name and parses each as f64, defaulting to 0.0 on missing / unparseable entries.