summaryrefslogtreecommitdiff
path: root/influxdb.go
diff options
context:
space:
mode:
Diffstat (limited to 'influxdb.go')
-rw-r--r--influxdb.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/influxdb.go b/influxdb.go
index 992bef3..7dd42bb 100644
--- a/influxdb.go
+++ b/influxdb.go
@@ -6,8 +6,10 @@ import (
client "github.com/influxdata/influxdb/client/v2"
)
+// Point is a datapoint to be logged in to InfluxDB.
type Point = *client.Point
+// NewPoint is a convenience function to create a new Point.
func NewPoint(name string, tags map[string]string, fields map[string]interface{}) Point {
pt, err := client.NewPoint(name, tags, fields, time.Now())
if err != nil {