v1.measurementTagKeys() function

Warning! This page documents an earlier version of Flux, which is no longer actively developed. Flux v0.36 is the most recent stable version of Flux.

The v1.measurementTagKeys() function returns a list of tag keys for a specific measurement. The return value is always a single table with a single column, _value.

import "influxdata/influxdb/v1"

v1.measurementTagKeys(
  bucket: "telegraf/autogen",
  measurement: "cpu"
)

Parameters

bucket

The bucket from which to return tag keys for a specific measurement.

Data type: String

measurement

The measurement from which to return tag keys.

Data type: String

Function definition

measurementTagKeys = (bucket, measurement) =>
  tagKeys(
    bucket: bucket,
    predicate: (r) => r._measurement == measurement)

Used functions: tagKeys()