add mroe fields to rogue ap

This commit is contained in:
David Newhall II 2021-03-21 22:06:09 -07:00
parent ec36ef6c78
commit ff5b52e142
1 changed files with 10 additions and 8 deletions

View File

@ -16,14 +16,16 @@ func (u *InfluxUnifi) batchRogueAP(r report, s *unifi.RogueAP) {
r.send(&metric{ r.send(&metric{
Table: "uap_rogue", Table: "uap_rogue",
Tags: map[string]string{ Tags: map[string]string{
"ap_mac": s.ApMac, "ap_mac": s.ApMac,
"site_name": s.SiteName, "site_name": s.SiteName,
"source": s.SourceName, "source": s.SourceName,
"name": s.Essid, "name": s.Essid,
"mac": s.Bssid, "mac": s.Bssid,
"security": s.Security, "security": s.Security,
"oui": s.Oui, "radio": s.Radio,
"band": s.Band, "radio_name": s.RadioName,
"oui": s.Oui,
"band": s.Band,
}, },
Fields: map[string]interface{}{ Fields: map[string]interface{}{
"age": s.Age.Val, "age": s.Age.Val,