Function juju::add_metric [] [src]

pub fn add_metric(key: &str, value: &str) -> Result<i32, JujuError>

Add metric values See Juju Metrics for more information May only be called from the collect-metrics hook

Failures

Returns stderr if the add_metric command fails