mirror of
https://github.com/unpoller/unpoller.git
synced 2026-04-05 08:54:00 -04:00
adds in UBB & UCI support
This commit is contained in:
@@ -24,6 +24,7 @@ func (u *InfluxUnifi) batchUBB(r report, s *unifi.UBB) { // nolint: funlen
|
||||
"serial": s.Serial,
|
||||
"type": s.Type,
|
||||
}
|
||||
|
||||
var sw *unifi.Bb
|
||||
if s.Stat != nil {
|
||||
sw = s.Stat.Bb
|
||||
@@ -33,6 +34,7 @@ func (u *InfluxUnifi) batchUBB(r report, s *unifi.UBB) { // nolint: funlen
|
||||
if s.SysStats != nil {
|
||||
sysStats = *s.SysStats
|
||||
}
|
||||
|
||||
systemStats := unifi.SystemStats{}
|
||||
if s.SystemStats != nil {
|
||||
systemStats = *s.SystemStats
|
||||
|
||||
@@ -34,6 +34,7 @@ func (u *InfluxUnifi) batchUCI(r report, s *unifi.UCI) { // nolint: funlen
|
||||
if s.SysStats != nil {
|
||||
sysStats = *s.SysStats
|
||||
}
|
||||
|
||||
systemStats := unifi.SystemStats{}
|
||||
if s.SystemStats != nil {
|
||||
systemStats = *s.SystemStats
|
||||
|
||||
Reference in New Issue
Block a user