From 9abcc745e0022af9ab1c05c247b30b011eecf3ae Mon Sep 17 00:00:00 2001 From: Iris Scholten Date: Tue, 9 Apr 2019 17:11:58 -0700 Subject: [PATCH] fix(ui): Update flux function shift to timeShift in the functions list --- ui/src/shared/constants/fluxFunctions.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/src/shared/constants/fluxFunctions.ts b/ui/src/shared/constants/fluxFunctions.ts index 8bae463a6c2..4e84f52d883 100644 --- a/ui/src/shared/constants/fluxFunctions.ts +++ b/ui/src/shared/constants/fluxFunctions.ts @@ -1223,12 +1223,12 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ 'https://v2.docs.influxdata.com/v2.0/reference/flux/functions/transformations/set', }, { - name: 'shift', + name: 'timeShift', args: [ { - name: 'shift', + name: 'duration', desc: - 'The amount of time to add to each time value. The shift may be a negative duration.', + 'The amount of time to add to each time value. May be a negative duration.', type: 'String', }, { @@ -1240,7 +1240,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [ ], desc: 'Adds a fixed duration to time columns. The output table schema is the same as the input table.', - example: 'shift(shift: 10h, columns: ["_start", "_stop", "_time"])', + example: 'timeShift(duration: 10h, columns: ["_start", "_stop", "_time"])', category: 'Transformations', link: 'https://v2.docs.influxdata.com/v2.0/reference/flux/functions/transformations/shift',