Skip to content

Commit 78c789a

Browse files
committed
Use avg aggregation for some of the built in charts
1 parent 4f33f0e commit 78c789a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/webapp/app/presenters/v3/BuiltInDashboards.server.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const overviewDashboard: BuiltInDashboard = {
3939
display: {
4040
type: "bignumber",
4141
column: "success_percentage",
42-
aggregation: "sum",
42+
aggregation: "avg",
4343
abbreviate: true,
4444
suffix: "%",
4545
},
@@ -113,7 +113,7 @@ const overviewDashboard: BuiltInDashboard = {
113113
},
114114
},
115115
i3q1Awfz: {
116-
title: "Run success",
116+
title: "Run success %",
117117
query:
118118
"SELECT\r\n timeBucket (),\r\n count() as total,\r\n countIf (status = 'Completed') / total * 100 AS completed,\r\n countIf (status IN ('Failed', 'Crashed', 'System failure')) / total * 100 AS failed,\r\nFROM\r\n runs\r\nGROUP BY\r\n timeBucket\r\nORDER BY\r\n timeBucket",
119119
display: {
@@ -125,7 +125,7 @@ const overviewDashboard: BuiltInDashboard = {
125125
stacked: false,
126126
sortByColumn: null,
127127
sortDirection: "asc",
128-
aggregation: "sum",
128+
aggregation: "avg",
129129
seriesColors: { failed: "#f43f5e" },
130130
},
131131
},
@@ -199,7 +199,7 @@ const overviewDashboard: BuiltInDashboard = {
199199
stacked: false,
200200
sortByColumn: null,
201201
sortDirection: "asc",
202-
aggregation: "sum",
202+
aggregation: "avg",
203203
seriesColors: {},
204204
},
205205
},

0 commit comments

Comments
 (0)