From 27d83f414e7e2cf268067befd131c125daa91da3 Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Fri, 23 Dec 2016 00:43:15 -0800 Subject: [PATCH] Add influx 'mode' and 'cumulative_sum' (#7045) --- .../plugins/datasource/influxdb/query_part.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/public/app/plugins/datasource/influxdb/query_part.ts b/public/app/plugins/datasource/influxdb/query_part.ts index c0592204bc8..80c238a50b1 100644 --- a/public/app/plugins/datasource/influxdb/query_part.ts +++ b/public/app/plugins/datasource/influxdb/query_part.ts @@ -173,6 +173,15 @@ register({ renderer: functionRenderer, }); +register({ + type: 'mode', + addStrategy: replaceAggregationAddStrategy, + category: categories.Aggregations, + params: [], + defaultParams: [], + renderer: functionRenderer, +}); + register({ type: 'sum', addStrategy: replaceAggregationAddStrategy, @@ -229,6 +238,15 @@ register({ renderer: functionRenderer, }); +register({ + type: 'cumulative_sum', + addStrategy: addTransformationStrategy, + category: categories.Transformations, + params: [], + defaultParams: [], + renderer: functionRenderer, +}); + register({ type: 'stddev', addStrategy: addTransformationStrategy,