Merge pull request #14469 from influxdata/flux-0.37-functions

Added exponentialMovingAverage documentation
pull/14473/head
Scott Anderson 2019-07-25 16:36:52 -06:00 committed by GitHub
commit c7d8fd7c48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

View File

@ -687,6 +687,28 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [
link:
'https://v2.docs.influxdata.com/v2.0/reference/flux/functions/built-in/transformations/elapsed/',
},
{
name: 'exponentialMovingAverage',
args: [
{
name: 'n',
desc: 'The number of points to average.',
type: 'Integer',
},
{
name: 'columns',
desc: 'Columns to operate on. Defaults to `["_value"]`.',
type: 'Array of Strings`',
},
],
package: '',
desc:
'Calculates the exponential moving average of values grouped into `n` number of points, giving more weight to recent data.',
example: 'exponentialMovingAverage(n: 5)',
category: 'Aggregates',
link:
'https://v2.docs.influxdata.com/v2.0/reference/flux/functions/built-in/transformations/aggregates/exponentialmovingaverage/',
},
{
name: 'fill',
args: [