influxdb-client-js

InfluxDB 2.0 JavaScript client

View the Project on GitHub influxdata/influxdb-client-js

Home > @influxdata/influxdb-client > Point > toLineProtocol

Point.toLineProtocol() method

Creates an InfluxDB protocol line out of this instance.

Signature:

toLineProtocol(settings?: Partial<PointSettings>): string | undefined;

Parameters

Parameter Type Description
settings Partial<PointSettings> (Optional) settings control serialization of a point timestamp and can also add default tags, nanosecond timestamp precision is used when no settings or no settings.convertTime is supplied.

Returns:

string | undefined

an InfluxDB protocol line out of this instance