From 5e8eadac9bf58bf429f5de45799a679959d82dcf Mon Sep 17 00:00:00 2001 From: prplV Date: Wed, 5 Mar 2025 13:32:55 +0300 Subject: [PATCH] Metric template tempo added --- crates/integr-structs/src/api.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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,