Skip to main content

Mountain/IPC/Enhanced/PerformanceDashboard/
PerformanceMetric.rs

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