enode monitoring pattern constructor for prom metrics
parent
a758db9bb4
commit
fa47771cff
|
|
@ -267,6 +267,13 @@ pub mod v3 {
|
|||
metrics: metrics
|
||||
}
|
||||
}
|
||||
pub async fn new_zvks(metrics: Vec<MetricOutput>) -> Self {
|
||||
Self {
|
||||
service_name : "zvks".to_owned(),
|
||||
endpoint_name : "apiforsnmp".to_owned(),
|
||||
metrics : metrics,
|
||||
}
|
||||
}
|
||||
pub fn get_bytes_len(&self) -> usize {
|
||||
let str_metrics = serde_json::to_vec(self).unwrap_or_else(
|
||||
|_| Vec::new()
|
||||
|
|
|
|||
Loading…
Reference in New Issue