From 88ca69536193acb8c398028e9942f70bee088189 Mon Sep 17 00:00:00 2001 From: chrismartin0077 Date: Mon, 29 Aug 2016 06:16:57 -0700 Subject: [PATCH] feat(influxdb) add elapsed(), fixes #5827 --- public/app/plugins/datasource/influxdb/query_part.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/public/app/plugins/datasource/influxdb/query_part.ts b/public/app/plugins/datasource/influxdb/query_part.ts index 0081481437d..c0592204bc8 100644 --- a/public/app/plugins/datasource/influxdb/query_part.ts +++ b/public/app/plugins/datasource/influxdb/query_part.ts @@ -254,6 +254,15 @@ register({ renderer: functionRenderer, }); +register({ + type: 'elapsed', + addStrategy: addTransformationStrategy, + category: categories.Transformations, + params: [{ name: "duration", type: "interval", options: ['1s', '10s', '1m', '5m', '10m', '15m', '1h']}], + defaultParams: ['10s'], + renderer: functionRenderer, +}); + // Selectors register({ type: 'bottom',