Skip to content

Commit

Permalink
fix(fluxFunctions): fix category on fromRange (#16991)
Browse files Browse the repository at this point in the history
* fix(fluxFunctions): fix category on fromRange

* fix(fluxFunctions): update to use example-bucket

* fix(fluxFunctions): run prettier

* fix(fluxFunctions): update description for experimental/query functions

* fix(fluxFunctions): update category for inBucket

* chore(changelog): update changelog
  • Loading branch information
russorat authored Feb 25, 2020
1 parent 9f71cad commit 8d9e355
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## v2.0.0-beta.5 [unreleased]

### Features
1. [16991](https://github.com/influxdata/influxdb/pull/16991): Update Flux functions list for v0.61

### Bug Fixes
1. [16919](https://github.com/influxdata/influxdb/pull/16919): Sort dashboards on homepage alphabetically
Expand Down
24 changes: 13 additions & 11 deletions ui/src/shared/constants/fluxFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const FROM: FluxToolbarFunction = {
package: '',
desc:
'Used to retrieve data from an InfluxDB data source. It returns a stream of tables from the specified bucket. Each unique series is contained within its own table. Each record in the table represents a single point in the series.',
example: 'from(bucket: "telegraf")',
example: 'from(bucket: "example-bucket")',
category: 'Inputs',
link:
'https://v2.docs.influxdata.com/v2.0/reference/flux/stdlib/built-in/inputs/from/',
Expand Down Expand Up @@ -3271,10 +3271,10 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [
},
],
package: 'experimental/query',
desc: 'Filters input data by measurement.',
desc: 'Returns all data from a specified bucket within given time bounds.',
example:
'query.fromRange(bucket: "example-bucket", start: v.timeRangeStart)',
category: 'Input',
category: 'Inputs',
link:
'https://v2.docs.influxdata.com/v2.0/reference/flux/stdlib/experimental/query/fromrange/',
},
Expand Down Expand Up @@ -3313,10 +3313,11 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [
},
],
package: 'experimental/query',
desc: 'Filters input data by measurement.',
desc:
'Queries data from a specified bucket within given time bounds, filters data by measurement, field, and optional predicate expressions.',
example:
'query.inBucket(bucket: "example-bucket", start: v.timeRangeStart, measurement: "measurement_name", fields: ["field_name"], predicate: (r) => r.host == "host1")',
category: 'Input',
category: 'Inputs',
link:
'https://v2.docs.influxdata.com/v2.0/reference/flux/stdlib/experimental/query/inbucket/',
},
Expand Down Expand Up @@ -4805,7 +4806,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [
],
package: '',
desc: 'The `to()` function writes data to an InfluxDB v2.0 bucket.',
example: 'to(bucket:"my-bucket", org:"my-org")',
example: 'to(bucket: "example-bucket", org: "example-org")',
category: 'Outputs',
link:
'https://v2.docs.influxdata.com/v2.0/reference/flux/stdlib/built-in/outputs/to/',
Expand Down Expand Up @@ -5002,7 +5003,8 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [
],
package: 'influxdata/influxdb/v1',
desc: 'Returns a list of tag keys for a specific measurement.',
example: 'v1.measurementTagKeys(bucket: "telegraf", measurement: "mem")',
example:
'v1.measurementTagKeys(bucket: "example-bucket", measurement: "mem")',
category: 'Transformations',
link:
'https://v2.docs.influxdata.com/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagkeys/',
Expand Down Expand Up @@ -5030,7 +5032,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [
package: 'influxdata/influxdb/v1',
desc: 'Returns a list of tag values for a specific measurement.',
example:
'v1.measurementTagValues(bucket: "telegraf", measurement: "mem", tag: "host")',
'v1.measurementTagValues(bucket: "example-bucket", measurement: "mem", tag: "host")',
category: 'Transformations',
link:
'https://v2.docs.influxdata.com/v2.0/reference/flux/stdlib/influxdb-v1/measurementtagvalues/',
Expand All @@ -5046,7 +5048,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [
],
package: 'influxdata/influxdb/v1',
desc: 'Returns a list of measurements in a specific bucket.',
example: 'v1.measurements(bucket: "telegraf")',
example: 'v1.measurements(bucket: "example-bucket")',
category: 'Transformations',
link:
'https://v2.docs.influxdata.com/v2.0/reference/flux/stdlib/influxdb-v1/measurements/',
Expand Down Expand Up @@ -5074,7 +5076,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [
],
package: 'influxdata/influxdb/v1',
desc: 'Returns a list of tag keys for all series that match the predicate.',
example: 'v1.tagKeys(bucket: "telegraf")',
example: 'v1.tagKeys(bucket: "example-bucket")',
category: 'Transformations',
link:
'https://v2.docs.influxdata.com/v2.0/reference/flux/stdlib/influxdb-v1/tagkeys/',
Expand Down Expand Up @@ -5107,7 +5109,7 @@ export const FLUX_FUNCTIONS: FluxToolbarFunction[] = [
],
package: 'influxdata/influxdb/v1',
desc: 'Returns a list of unique values for a given tag.',
example: 'v1.tagValues(bucket: "telegraf")',
example: 'v1.tagValues(bucket: "example-bucket")',
category: 'Transformations',
link:
'https://v2.docs.influxdata.com/v2.0/reference/flux/stdlib/influxdb-v1/tagvalues/',
Expand Down

0 comments on commit 8d9e355

Please sign in to comment.