DataTrails: Fixes heatmap (#80706)

* DataTrails: Heatmap y axis fix

* Fix format
This commit is contained in:
Torkel Ödegaard 2024-01-17 17:05:24 +01:00 committed by GitHub
parent c7859c2fa9
commit c27bee567f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -68,10 +68,11 @@ function baseQuery(groupings: string[] = []) {
return `sum by(${sumByList.join(', ')}) (${BASE_QUERY})`;
}
function heatMapQuery(groupings: string[] = []) {
function heatMapQuery(groupings: string[] = []): PromQuery {
return {
refId: 'A',
expr: baseQuery(groupings),
format: 'heatmap',
};
}