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. |
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. |
setMeasurement(measurement)
Set a measurement to the InfluxRecord.
Parameters:
Name | Type | Description |
---|---|---|
measurement |
string | The measurement to set. |
toJson() → {string}
Transform the DBRecord to a compatible Json representation.
- Implements:
- Source:
Returns:
The representation as String.
- Type
- string