update readme

This commit is contained in:
Cody Lee
2022-12-04 20:44:52 -06:00
parent f86e9731da
commit 8273aafaf4
2 changed files with 43 additions and 5 deletions

View File

@@ -65,7 +65,7 @@ type InfluxDB struct {
type InfluxUnifi struct {
Collector poller.Collect
influxV1 influxV1.Client
influxV2 influx.ClientInterface
influxV2 influx.Client
LastCheck time.Time
*InfluxDB
}
@@ -231,7 +231,7 @@ func (u *InfluxUnifi) ReportMetrics(m *poller.Metrics, e *poller.Events) (*Repor
if u.Config.Version2 {
// Make a new Influx Points Batcher.
r.writer = &u.influxV2.WriteAPI(u.Org, u.Bucket)
r.writer = u.influxV2.WriteAPI(u.Org, u.Bucket)
go u.collect(r, r.ch)
// Batch all the points.