diff --git a/api/libs/database/src/types/metric_yml.rs b/api/libs/database/src/types/metric_yml.rs index 068bd6c6f..3e435b4f4 100644 --- a/api/libs/database/src/types/metric_yml.rs +++ b/api/libs/database/src/types/metric_yml.rs @@ -663,6 +663,18 @@ pub struct MetricChartConfig { pub metric_value_label: Option, } +#[derive(Debug, Serialize, Deserialize, Clone)] +#[serde(rename_all = "camelCase")] +pub enum MetricValueAggregate { + Sum, + Average, + Median, + Count, + Max, + Min, + First +} + #[derive(Debug, Serialize, Deserialize, Clone)] #[serde(rename_all = "camelCase")] pub struct TableChartConfig {