From aad824a562212ac4087bb29a269932a60383df7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 18 Nov 2015 17:05:21 +0100 Subject: [PATCH] feat(tablepanel): completed work on time series aggregations table transform, #3219 --- public/app/core/time_series.ts | 1 + public/app/panels/table/transformers.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/public/app/core/time_series.ts b/public/app/core/time_series.ts index 30086be622a..aae35ab035d 100644 --- a/public/app/core/time_series.ts +++ b/public/app/core/time_series.ts @@ -143,6 +143,7 @@ class TimeSeries { } } + this.stats.count = result.length; return result; } diff --git a/public/app/panels/table/transformers.ts b/public/app/panels/table/transformers.ts index acf150ba110..48559f943bd 100644 --- a/public/app/panels/table/transformers.ts +++ b/public/app/panels/table/transformers.ts @@ -78,6 +78,9 @@ transformers['timeseries_aggregations'] = { {text: 'Avg', value: 'avg'}, {text: 'Min', value: 'min'}, {text: 'Max', value: 'max'}, + {text: 'Total', value: 'total'}, + {text: 'Current', value: 'current'}, + {text: 'Count', value: 'count'}, ]; }, transform: function(data, panel, model) {