toString() function

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

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))