Interface: InfluxRecord

InfluxRecord

Operations on an InfluxDB record.

The data will be formatted as follow:


{ measurement: "topic", tags: {tagKey: "tagValueForThisRecord"}, fields: {fieldKey: "fieldValue"} }

Implements:
Source:

Methods

addFields(json)

Add the json object's elements as a field on the InfluxRecord.
Parameters:
Name Type Description
json object The json to add fields from.
Source:

addTags(json)

Add the json object's elements as a tag on the InfluxRecord.
Parameters:
Name Type Description
json object The json to add tags from.
Source:

setMeasurement(measurement)

Set a measurement to the InfluxRecord.
Parameters:
Name Type Description
measurement string The measurement to set.
Source:

toJson() → {string}

Transform the DBRecord to a compatible Json representation.
Implements:
Source:
Returns:
The representation as String.
Type
string