add mroe fields to rogue ap
This commit is contained in:
		
							parent
							
								
									ec36ef6c78
								
							
						
					
					
						commit
						ff5b52e142
					
				|  | @ -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, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue