influxdb-client-js

InfluxDB 2.0 JavaScript client

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

Home > @influxdata/influxdb-client > WriteOptions

WriteOptions interface

Options used by WriteApi .

Signature:

interface WriteOptions extends WriteRetryOptions 

Extends: WriteRetryOptions

Properties

Property Modifiers Type Description
batchSize   number max number of records/lines to send in a batch
consistency?   ‘any’ | ‘one’ | ‘quorum’ | ‘all’ (Optional) InfluxDB Enterprise write consistency as explained in https://docs.influxdata.com/enterprise_influxdb/v1.9/concepts/clustering/#write-consistency
defaultTags?   Record<string, string> (Optional) default tags, unescaped
flushInterval   number delay between data flushes in milliseconds, at most batch size records are sent during flush
gzipThreshold?   number (Optional) When specified, write bodies larger than the threshold are gzipped
headers?   { [key: string]: string; } (Optional) HTTP headers that will be sent with every write request
maxBatchBytes   number max size of a batch in bytes