toString() function

The toString() function converts a value to a string.

Function type: Type conversion
Output data type: String

toString()

Examples

from(bucket: "telegraf")
  |> filter(fn:(r) =>
    r._measurement == "mem" AND
    r._field == "used"
  )
  |> toString()

Function definition

toString = (tables=<-) =>
  tables
    |> map(fn:(r) => string(v: r._value))

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


Need help getting up and running? Get Support