keys() function

The keys() function returns a table with the input table’s group key columns, plus a _value column containing the names of the input table’s columns.

Function type: Transformation
Output data type: Object

keys(except: ["_time", "_value"])

Parameters

except

Exclude the specified column names in the output. Defaults to ["_time", "_value"].

Data type: Array of strings

Examples

from(bucket: "telegraf/autogen")
  |> range(start: -30m)
  |> keys(except: ["_time", "_start", "_stop", "_field", "_measurement", "_value"])

SHOW MEASUREMENTS
SHOW FIELD KEYS
SHOW TAG KEYS
SHOW SERIES

This documentation is open source. See a typo? Please, open an issue.


Need help getting up and running? Get Support