Metric template tempo added
parent
f6ad632c2d
commit
5e8eadac9b
|
|
@ -160,6 +160,16 @@ pub mod v3 {
|
|||
pub json_type : String,
|
||||
pub addr : String,
|
||||
}
|
||||
impl Metric {
|
||||
pub fn template() -> Self {
|
||||
Self {
|
||||
id : "room_tempo".to_string(),
|
||||
json_type : "String".to_string(),
|
||||
addr : "flat1.room1.rt_tempo".to_string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||
pub struct Metrics {
|
||||
pub name : String,
|
||||
|
|
|
|||
Loading…
Reference in New Issue