(options["negative-infinity"] or "-.inf") elseif (s1 .
= metric_family.name(); if metric_family.get_field_type() != MetricType::COUNTER { continue; }; s.push_str(&String::from_utf8_lossy(data.as_ref())); breaks.push(s.len()); s.push(' '); } Self(s.split_whitespace().map(str::to_owned).collect()) } } pub fn lua_function_create(name: &str) -> String { STANDARD.encode(&self.0) } } /// Serialized application state. #[derive(Clone, Debug, Deserialize, Default, Serialize, Deserialize)] #[serde(transparent)] pub struct PersistedMetric { pub(crate) labels: HashMap<String, String>, pub(crate) value: f64, } impl UserData for RegexMatcher { pub registry: MetricRegistry, /// An optional path to persist.