InfluxDB 2.0 JavaScript client
Home > @influxdata/influxdb-client > Point > toLineProtocol
Creates an InfluxDB protocol line out of this instance.
Signature:
toLineProtocol(settings?: Partial<PointSettings>): string | undefined;
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