toUInt() function

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

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) => ({ r with exposures: uint(v: r.exposures) }))