chore(flux): added Flux 0.65 functions (#17506)

pull/17459/head^2
Scott Anderson 2020-03-31 15:26:24 -06:00 committed by GitHub
parent 098fd27ab4
commit 1816425e52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 63 additions and 0 deletions

View File

@ -966,6 +966,35 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [
link:
'https://v2.docs.influxdata.com/v2.0/reference/flux/stdlib/experimental/group/',
},
{
name: 'experimental.join',
args: [
{
name: 'left',
desc: 'First of two streams of tables to join.',
type: 'Stream of tables',
},
{
name: 'right',
desc: 'Second of two streams of tables to join.',
type: 'Stream of tables',
},
{
name: 'fn',
desc:
'A function that maps new output rows using left and right input rows.',
type: 'Function',
},
],
package: 'experimental',
desc:
'Joins two streams of tables on the group key and _time column. Use the fn parameter to map output tables.',
example:
'experimental.join(left: left, right: right, fn: (left, right) => ({left with lv: left._value, rv: right._value }))',
category: 'Transformations',
link:
'https://v2.docs.influxdata.com/v2.0/reference/flux/stdlib/experimental/join/',
},
{
name: 'experimental.objectKeys',
args: [
@ -1349,6 +1378,40 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [
link:
'https://v2.docs.influxdata.com/v2.0/reference/flux/stdlib/experimental/geo/s2cellidtoken/',
},
{
name: 'geo.shapeData',
args: [
{
name: 'latField',
desc: 'Name of existing latitude field.',
type: 'String',
},
{
name: 'lonField',
desc: 'Name of existing longitude field.',
type: 'String',
},
{
name: 'level',
desc: 'S2 cell level to use when generating the S2 cell ID token.',
type: 'Integer',
},
{
name: 'correlationKey',
desc:
'List of columns used to uniquely identify a row for output. Default is `["_time"]`.',
type: 'Array of Strings',
},
],
package: 'experimental/geo',
desc:
'Renames existing latitude and longitude fields to `lat` and `lon` and adds an `s2_cell_id` tag.',
example:
'geo.shapeData(latField: "latitude", lonField: "longitude", level: 10)',
category: 'Transformations',
link:
'https://v2.docs.influxdata.com/v2.0/reference/flux/stdlib/experimental/geo/shapedata/',
},
{
name: 'geo.strictFilter',
args: [