Hi All, I’m using influxDb v2 and I can’t rename a value to a friendly one:
The filter is: |> filter(fn: (r) => r["_field"] == “ifInBits_rate” or r["_field"] == “ifOutOctets_rate”)
I tried the following map but it did not work:
|> map(fn: (r) => ({
r with name:
if r._field == “ifInBits_rate” then “In Bits”
else “Out Bits”
})
)
Any ideas?