Added exponentialMovingAverage documentation

pull/14469/head
Scott Anderson 2019-07-25 16:26:26 -06:00
parent c4b8737b96
commit c442ca198c
1 changed files with 23 additions and 0 deletions

View File

@ -687,6 +687,29 @@ 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: [