toUInt() function

The toUInt() function converts a value to an UInteger.

Function type: Type conversion
Output data type: UInteger

toUInt()

Examples

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

Function definition

toUInt = (tables=<-) =>
  tables
    |> map(fn:(r) => uint(v:r._value))

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


Need help getting up and running? Get Support