Use u32 for time unit (for now) as it's hashable

This commit is contained in:
Olivier 'reivilibre' 2022-01-08 15:12:20 +00:00
parent 59a38aa847
commit 5e96828707
1 changed files with 2 additions and 2 deletions

View File

@ -7,11 +7,11 @@ pub struct DashboardConfig {
pub graphs: Vec<GraphConfig>, pub graphs: Vec<GraphConfig>,
} }
#[derive(Deserialize, Clone)] #[derive(Deserialize, Clone, Debug, Hash)]
pub enum MetricTransform { pub enum MetricTransform {
Rate { Rate {
// Divisor in seconds. Would usually expect to see 1 (/sec), 60 (/min) or 3600 (/hour). // Divisor in seconds. Would usually expect to see 1 (/sec), 60 (/min) or 3600 (/hour).
time_unit: f32, time_unit: u32,
}, },
} }