The Xentara InfluxDB Client v1.2.1
User Manual
|
A JSON object describing an Influxdb WriteRequest has following syntax:
id | A string value containing the ID of the write request. The ID is used to construct the write request’s primary key. |
UUID | A string value containing the unique UUID of the write request. |
ACL | An optional JSON object containing the element ACL of the write request. The format of the block is described here. |
batchsize | An optional array of parameters to set the BatchSize. If BatchSize is not defined the default values are 5000 for the records and 1 for the loops as it has been suggested to be the optimal values by Influxdb. |
loops | An optional integer which defines the number of loops required to send the measurements. The default value is 1. |
requests | An optional integer which defines the number of requests of records required to wait until a measurement is been send. The default value is 5000. |
recordGroups | A JSON array containing properties of the measurements, tags and fields. |
measurements | An array containing string values paired with datapoints in form of string values. The first string defines the name of the measurement in the InfluxDB server and the second is the corresponding key of the datapoint. |
tags | An optional array containing string values paired with attribute of the datapoints. The first string value defines the name of the tag in the Influxdb Server and the second the name of the datapoint attribute. |
fields | An array containing string values paired with attribute of the datapoints. The first string value defines the name of the field in the Influxdb Server and the second the name of the datapoint attribute. |
Please remember that each element block requires two layers of {}
due to the syntax restrictions of the JSON format.