mirror of
https://github.com/unpoller/unpoller.git
synced 2026-04-05 08:54:09 -04:00
painful upgrade for dumb go versioning
This commit is contained in:
@@ -2,7 +2,7 @@ package promunifi
|
||||
|
||||
import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/unpoller/unifi"
|
||||
"github.com/unpoller/unifi/v5"
|
||||
)
|
||||
|
||||
type uclient struct {
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
promver "github.com/prometheus/common/version"
|
||||
"github.com/unpoller/unifi"
|
||||
"github.com/unpoller/unifi/v5"
|
||||
"github.com/unpoller/unpoller/pkg/poller"
|
||||
"github.com/unpoller/unpoller/pkg/webserver"
|
||||
"golift.io/version"
|
||||
|
||||
@@ -2,7 +2,7 @@ package promunifi
|
||||
|
||||
import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/unpoller/unifi"
|
||||
"github.com/unpoller/unifi/v5"
|
||||
)
|
||||
|
||||
type pdu struct {
|
||||
|
||||
@@ -2,7 +2,7 @@ package promunifi
|
||||
|
||||
import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/unpoller/unifi"
|
||||
"github.com/unpoller/unifi/v5"
|
||||
)
|
||||
|
||||
type site struct {
|
||||
@@ -79,7 +79,7 @@ func (u *promUnifi) exportSiteDPI(r report, v any) {
|
||||
s, ok := v.(*unifi.DPITable)
|
||||
if !ok {
|
||||
u.LogErrorf("invalid type given to SiteDPI: %T", v)
|
||||
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package promunifi
|
||||
|
||||
import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/unpoller/unifi"
|
||||
"github.com/unpoller/unifi/v5"
|
||||
)
|
||||
|
||||
type uap struct {
|
||||
|
||||
@@ -2,7 +2,7 @@ package promunifi
|
||||
|
||||
import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/unpoller/unifi"
|
||||
"github.com/unpoller/unifi/v5"
|
||||
)
|
||||
|
||||
// These are shared by all four device types: UDM, UAP, USG, USW.
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/unpoller/unifi"
|
||||
"github.com/unpoller/unifi/v5"
|
||||
)
|
||||
|
||||
type usg struct {
|
||||
|
||||
@@ -2,7 +2,7 @@ package promunifi
|
||||
|
||||
import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/unpoller/unifi"
|
||||
"github.com/unpoller/unifi/v5"
|
||||
)
|
||||
|
||||
type usw struct {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package promunifi
|
||||
|
||||
import (
|
||||
"github.com/unpoller/unifi"
|
||||
"github.com/unpoller/unifi/v5"
|
||||
)
|
||||
|
||||
// exportUXG is a collection of stats from USG and USW. It has no unique stats.
|
||||
|
||||
Reference in New Issue
Block a user