v1.tagValues() function
v1.tagValues()
was deprecated in Flux v0.88.0 in favor of
schema.tagValues()
.
The v1.tagValues()
function returns a list of unique values for a given tag.
The return value is always a single table with a single column, _value
.
import "influxdata/influxdb/v1"
v1.tagValues(
bucket: "example-bucket",
tag: "host",
predicate: (r) => true,
start: -30d,
)
Parameters
bucket
Bucket to return unique tag values from.
tag
Tag to return unique values from.
predicate
Predicate function that filters tag values.
Default is (r) => true
.
start
Oldest time to include in results.
Default is -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.tagValues(bucket: "my-bucket", tag: "host")
Was this page helpful?
Thank you for your feedback!
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, use the following resources:
InfluxDB Cloud customers can contact InfluxData Support.