The toInt()
function converts a value to an integer.
Function type: Type conversion
Output data type: Integer
toInt()
Examples
from(bucket: "telegraf")
|> filter(fn:(r) =>
r._measurement == "mem" and
r._field == "used"
)
|> toInt()
Function definition
toInt = (tables=<-) =>
tables
|> map(fn:(r) => int(v: r._value))