diff --git a/crates/integr-structs/src/api.rs b/crates/integr-structs/src/api.rs index d96feeb..3f8a289 100644 --- a/crates/integr-structs/src/api.rs +++ b/crates/integr-structs/src/api.rs @@ -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,