Merge pull request #446 from unpoller/merge-remaining-work

Finishing Merge cleanup
This commit is contained in:
Cody Lee 2022-12-03 17:21:19 -05:00 committed by GitHub
commit b05453b643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -59,8 +59,10 @@ func (u *InfluxUnifi) batchUSGstats(ss unifi.SpeedtestStatus, gw *unifi.Gw, ul u
} }
return map[string]interface{}{ return map[string]interface{}{
"uplink_name": ul.Name,
"uplink_latency": ul.Latency.Val, "uplink_latency": ul.Latency.Val,
"uplink_speed": ul.Speed.Val, "uplink_speed": ul.Speed.Val,
"uplink_type": ul.Type,
"speedtest-status_latency": ss.Latency.Val, "speedtest-status_latency": ss.Latency.Val,
"speedtest-status_runtime": ss.Runtime.Val, "speedtest-status_runtime": ss.Runtime.Val,
"speedtest-status_rundate": ss.Rundate.Val, "speedtest-status_rundate": ss.Rundate.Val,
@ -97,6 +99,7 @@ func (u *InfluxUnifi) batchUSGwans(r report, tags map[string]string, wans ...uni
"bytes-r": wan.BytesR.Val, "bytes-r": wan.BytesR.Val,
"full_duplex": wan.FullDuplex.Val, "full_duplex": wan.FullDuplex.Val,
"gateway": wan.Gateway, "gateway": wan.Gateway,
"is_uplink": wan.IsUplink.Val,
"max_speed": wan.MaxSpeed.Val, "max_speed": wan.MaxSpeed.Val,
"rx_bytes": wan.RxBytes.Val, "rx_bytes": wan.RxBytes.Val,
"rx_bytes-r": wan.RxBytesR.Val, "rx_bytes-r": wan.RxBytesR.Val,