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

chore(flux): flux 0.92 functions #19899

Merged
merged 1 commit into from
Nov 5, 2020
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
57 changes: 57 additions & 0 deletions ui/src/shared/constants/fluxFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2086,6 +2086,63 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [
link:
'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/built-in/transformations/increase/',
},
{
name: 'influxdb.cardinality',
args: [
{
name: 'bucket',
desc: 'Bucket to query cardinality from.',
type: 'String',
},
{
name: 'bucketID',
desc: 'Bucket ID to query cardinality from.',
type: 'String',
},
{
name: 'org',
desc: 'InfluxDB organization.',
type: 'String',
},
{
name: 'orgID',
desc: 'InfluxDB organization ID.',
type: 'String',
},
{
name: 'host',
desc: 'URL of the InfluxDB instance to query.',
type: 'String',
},
{
name: 'token',
desc: 'InfluxDB authorization token.',
type: 'String',
},
{
name: 'start',
desc: 'The earliest time to include when calculating cardinality.',
type: 'Duration | Time',
},
{
name: 'stop',
desc: 'The latest time to include when calculating cardinality.',
type: 'Duration | Time',
},
{
name: 'predicate',
desc:
'Predicate function that filters records. Default is `(r) => true.`',
type: 'Function',
},
],
package: 'influxdata/influxdb',
desc: 'Returns the series cardinality of data in InfluxDB.',
example: 'influxdb.cardinality(bucket: "example-bucket", start: -1h)',
category: 'Miscellaneous',
link:
'https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/influxdb/cardinality/',
},
{
name: 'int',
args: [
Expand Down