Skip to content

Commit

Permalink
fix(ui): Update flux function shift to timeShift in the functions list
Browse files Browse the repository at this point in the history
  • Loading branch information
ischolten committed Apr 10, 2019
1 parent d88d3c2 commit 9abcc74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/src/shared/constants/fluxFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
{
Expand All @@ -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',
Expand Down

0 comments on commit 9abcc74

Please sign in to comment.