Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): Update flux function shift to timeShift in the functions list #13284

Merged
merged 1 commit into from
Apr 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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