@@ -31,17 +31,23 @@ export const TABLES = [
31
31
{ value : 'metrics' as const , label : 'Metrics' } ,
32
32
] ;
33
33
34
- export const AGG_FNS = [
35
- { value : 'count' as const , label : 'Count of Events' } ,
36
- { value : 'sum' as const , label : 'Sum' } ,
37
- { value : 'p99' as const , label : '99th Percentile' } ,
38
- { value : 'p95' as const , label : '95th Percentile' } ,
39
- { value : 'p90' as const , label : '90th Percentile' } ,
40
- { value : 'p50' as const , label : 'Median' } ,
41
- { value : 'avg' as const , label : 'Average' } ,
42
- { value : 'max' as const , label : 'Maximum' } ,
43
- { value : 'min' as const , label : 'Minimum' } ,
44
- { value : 'count_distinct' as const , label : 'Count Distinct' } ,
34
+ export const AGG_FNS : {
35
+ value : AggFn ;
36
+ label : string ;
37
+ } [ ] = [
38
+ { value : 'avg' , label : 'Average' } ,
39
+ { value : 'count' , label : 'Count of Events' } ,
40
+ { value : 'count_distinct' , label : 'Count Distinct' } ,
41
+ { value : 'count_per_hour' , label : 'Count of Events per Hour' } ,
42
+ { value : 'count_per_min' , label : 'Count of Events per Minute' } ,
43
+ { value : 'count_per_sec' , label : 'Count of Events per Second' } ,
44
+ { value : 'max' , label : 'Maximum' } ,
45
+ { value : 'min' , label : 'Minimum' } ,
46
+ { value : 'p50' , label : 'Median' } ,
47
+ { value : 'p90' , label : '90th Percentile' } ,
48
+ { value : 'p95' , label : '95th Percentile' } ,
49
+ { value : 'p99' , label : '99th Percentile' } ,
50
+ { value : 'sum' , label : 'Sum' } ,
45
51
] ;
46
52
47
53
export const getMetricAggFns = (
0 commit comments