File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,18 @@ func CleanQuery(query string) string {
24
24
type Client interface {
25
25
influxClient.Client
26
26
27
- // UseDB sets the DB to use for Query, WritePoint, and WritePointTagsFields
27
+ // UseDB sets the DB to use for Query, WritePoint, and WritePointTagsFields.
28
+ // This field must be set before WritePoint... calls.
28
29
UseDB (db string ) Client
29
30
30
- // UseMeasurement sets the measurement to use for WritePoint, and WritePointTagsFields
31
+ // UseMeasurement sets the measurement to use for WritePoint, and WritePointTagsFields.
32
+ // If this is not set, a struct field with named InfluxMeasurement is required
33
+ // in the write data. The data passed in this call has priority over data fields in
34
+ // writes.
31
35
UseMeasurement (measurement string ) Client
32
36
33
- // UseTimeField sets the time field to use for WritePoint, and WritePointTagsFields
37
+ // UseTimeField sets the time field to use for WritePoint, and WritePointTagsFields. This
38
+ // call is optional, and a data struct field with a `influx:"time"` tag can also be used.
34
39
UseTimeField (fieldName string ) Client
35
40
36
41
// Query executes an InfluxDb query, and unpacks the result into the
You can’t perform that action at this time.
0 commit comments