From c8e059b2706021ed9b28bfdad8fd54740f99bc7e Mon Sep 17 00:00:00 2001 From: dal Date: Fri, 25 Apr 2025 09:45:06 -0600 Subject: [PATCH] enums on metric aggregate --- api/libs/database/src/types/metric_yml.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 {