schema.measurementTagKeys() function

The schema.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.

  1. import "influxdata/influxdb/schema"
  2. schema.measurementTagKeys(
  3. bucket: "example-bucket",
  4. measurement: "cpu"
  5. )

Parameters

bucket

Bucket to return tag keys from for a specific measurement.

*Data type: String*

measurement

Measurement to return tag keys from.

*Data type: String*

Function definition

  1. package schema
  2. measurementTagKeys = (bucket, measurement) =>
  3. tagKeys(
  4. bucket: bucket,
  5. predicate: (r) => r._measurement == measurement
  6. )

*Used functions: schema.tagKeys()*

Related articles

tags