mirror of https://github.com/buster-so/buster.git
enums on metric aggregate
This commit is contained in:
parent
57df857a53
commit
c8e059b270
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue