minor fix
This commit is contained in:
		
							parent
							
								
									ec84bfa82d
								
							
						
					
					
						commit
						cec311bf3b
					
				
							
								
								
									
										2
									
								
								go.mod
								
								
								
								
							
							
						
						
									
										2
									
								
								go.mod
								
								
								
								
							|  | @ -10,11 +10,11 @@ require ( | ||||||
| 	github.com/unpoller/lokiunifi v0.0.0-20210623102057-0902524b6a8a | 	github.com/unpoller/lokiunifi v0.0.0-20210623102057-0902524b6a8a | ||||||
| 	github.com/unpoller/poller v0.0.0-20210623104748-50161c195d5e | 	github.com/unpoller/poller v0.0.0-20210623104748-50161c195d5e | ||||||
| 	github.com/unpoller/promunifi v0.0.0-20210623101918-b986e661ac99 | 	github.com/unpoller/promunifi v0.0.0-20210623101918-b986e661ac99 | ||||||
|  | 	golift.io/cnfg v0.2.1 | ||||||
| 	golift.io/version v0.0.2 | 	golift.io/version v0.0.2 | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| require ( | require ( | ||||||
| 	golang.org/x/net v0.2.0 // indirect | 	golang.org/x/net v0.2.0 // indirect | ||||||
| 	golang.org/x/sys v0.2.0 // indirect | 	golang.org/x/sys v0.2.0 // indirect | ||||||
| 	golift.io/cnfg v0.2.1 // indirect |  | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ import ( | ||||||
| 	"strconv" | 	"strconv" | ||||||
| 	"time" | 	"time" | ||||||
| 
 | 
 | ||||||
| 	"github.com/unpoller/unifi" | 	"github.com/unpoller/unpoller/core/unifi" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| const ( | const ( | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| package datadogunifi | package datadogunifi | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"github.com/unpoller/unifi" | 	"github.com/unpoller/unpoller/core/unifi" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // batchClient generates Unifi Client datapoints for Datadog.
 | // batchClient generates Unifi Client datapoints for Datadog.
 | ||||||
|  |  | ||||||
|  | @ -7,8 +7,8 @@ import ( | ||||||
| 	"time" | 	"time" | ||||||
| 
 | 
 | ||||||
| 	"github.com/DataDog/datadog-go/statsd" | 	"github.com/DataDog/datadog-go/statsd" | ||||||
| 	"github.com/unpoller/poller" | 	"github.com/unpoller/unpoller/core/poller" | ||||||
| 	"github.com/unpoller/unifi" | 	"github.com/unpoller/unpoller/core/unifi" | ||||||
| 	"golift.io/cnfg" | 	"golift.io/cnfg" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ import ( | ||||||
| 	"strconv" | 	"strconv" | ||||||
| 	"time" | 	"time" | ||||||
| 
 | 
 | ||||||
| 	"github.com/unpoller/unifi" | 	"github.com/unpoller/unpoller/core/unifi" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // These constants are used as names for printed/logged counters.
 | // These constants are used as names for printed/logged counters.
 | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ import ( | ||||||
| 	"time" | 	"time" | ||||||
| 
 | 
 | ||||||
| 	"github.com/DataDog/datadog-go/statsd" | 	"github.com/DataDog/datadog-go/statsd" | ||||||
| 	"github.com/unpoller/poller" | 	"github.com/unpoller/unpoller/core/poller" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // Report is a will report the current collection run data.
 | // Report is a will report the current collection run data.
 | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| package datadogunifi | package datadogunifi | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"github.com/unpoller/unifi" | 	"github.com/unpoller/unpoller/core/unifi" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // reportSite generates Unifi Sites' datapoints for Datadog.
 | // reportSite generates Unifi Sites' datapoints for Datadog.
 | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| package datadogunifi | package datadogunifi | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"github.com/unpoller/unifi" | 	"github.com/unpoller/unpoller/core/unifi" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // uapT is used as a name for printed/logged counters.
 | // uapT is used as a name for printed/logged counters.
 | ||||||
|  |  | ||||||
|  | @ -4,7 +4,7 @@ import ( | ||||||
| 	"strconv" | 	"strconv" | ||||||
| 	"strings" | 	"strings" | ||||||
| 
 | 
 | ||||||
| 	"github.com/unpoller/unifi" | 	"github.com/unpoller/unpoller/core/unifi" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // udmT is used as a name for printed/logged counters.
 | // udmT is used as a name for printed/logged counters.
 | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| package datadogunifi | package datadogunifi | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"github.com/unpoller/unifi" | 	"github.com/unpoller/unpoller/core/unifi" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // usgT is used as a name for printed/logged counters.
 | // usgT is used as a name for printed/logged counters.
 | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| package datadogunifi | package datadogunifi | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"github.com/unpoller/unifi" | 	"github.com/unpoller/unpoller/core/unifi" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // uswT is used as a name for printed/logged counters.
 | // uswT is used as a name for printed/logged counters.
 | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| package datadogunifi | package datadogunifi | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"github.com/unpoller/unifi" | 	"github.com/unpoller/unpoller/core/unifi" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // uxgT is used as a name for printed/logged counters.
 | // uxgT is used as a name for printed/logged counters.
 | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								main.go
								
								
								
								
							
							
						
						
									
										2
									
								
								main.go
								
								
								
								
							|  | @ -10,7 +10,7 @@ import ( | ||||||
| 	// Load input plugins!
 | 	// Load input plugins!
 | ||||||
| 	_ "github.com/unpoller/inputunifi" | 	_ "github.com/unpoller/inputunifi" | ||||||
| 	// Load output plugins!
 | 	// Load output plugins!
 | ||||||
| 	_ "github.com/unpoller/datadogunifi" | 	_ "github.com/unpoller/integrations/datadogunifi" | ||||||
| 	_ "github.com/unpoller/influxunifi" | 	_ "github.com/unpoller/influxunifi" | ||||||
| 	_ "github.com/unpoller/lokiunifi" | 	_ "github.com/unpoller/lokiunifi" | ||||||
| 	_ "github.com/unpoller/promunifi" | 	_ "github.com/unpoller/promunifi" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue