I am runnning influxfb Flux query and series is returning duplicate element ,
however each element returned belongs to same id .
|{device_mac=“CLD0016”}|26.3|37.5|4.12|170|
|{device_mac=“CLD0016”, gateway=“MOKO”, gateway_id=“D000042”, gateway_mac=“409151b9a7be”}|
Secondly is there any way to rename
if r.device_mac == “” then “”
else if r.device_mac == “BC572903F23D” then “CLD0016”
else if r.device_mac == “BC572903F1DA” then “CLD0017”
else if r.device_mac == “BC572903F292” then “CLD0018”
r.device_mac from an API , where api can contain alias name