v1.measurementFieldKeys() function
v1.measurementFieldKeys()
was deprecated in Flux v0.88.0 in favor of
schema.measurementFieldKeys()
.
The v1.measurementFieldKeys()
function returns a list of fields in a measurement.
The return value is always a single table with a single column, _value
.
import "influxdata/influxdb/v1"
v1.measurementFieldKeys(
bucket: "example-bucket",
measurement: "example-measurement",
start: -30d,
)
Parameters
bucket
Bucket to retrieve field keys from.
measurement
Measurement to list field keys from.
start
Oldest time to include in results.
Defaults to -30d
.
Relative start times are defined using negative durations. Negative durations are relative to now. Absolute start times are defined using time values.
Examples
import "influxdata/influxdb/v1"
v1.measurementFieldKeys(bucket: "telegraf", measurement: "cpu")
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, the following resources are available:
InfluxDB Cloud customers can contact InfluxData Support.