Mountain/IPC/Enhanced/PerformanceDashboard/PerformanceMetric.rs
1
2//! One sample point: typed metric, value, timestamp,
3//! optional channel, free-form tag bag.
4
5use std::collections::HashMap;
6
7use serde::{Deserialize, Serialize};
8
9use crate::IPC::Enhanced::PerformanceDashboard::MetricType;
10
11#[derive(Debug, Clone, Serialize, Deserialize)]
12pub struct Struct {
13 pub metric_type:MetricType::Enum,
14
15 pub value:f64,
16
17 pub timestamp:u64,
18
19 pub channel:Option<String>,
20
21 pub tags:HashMap<String, String>,
22}