enums on metric aggregate

This commit is contained in:
dal 2025-04-25 09:45:06 -06:00
parent 57df857a53
commit c8e059b270
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
1 changed files with 12 additions and 0 deletions

View File

@ -663,6 +663,18 @@ pub struct MetricChartConfig {
pub metric_value_label: Option<String>, pub metric_value_label: Option<String>,
} }
#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub enum MetricValueAggregate {
Sum,
Average,
Median,
Count,
Max,
Min,
First
}
#[derive(Debug, Serialize, Deserialize, Clone)] #[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub struct TableChartConfig { pub struct TableChartConfig {