interface PostWriteRequest {
    body: string;
    bucket: string;
    org: string;
    orgID?: string;
    precision?: any;
}

Properties

body: string

Data in line protocol format.

To send compressed data, do the following:

  1. Use GZIP to compress the line protocol data.
  2. In your request, send the compressed data and the Content-Encoding: gzip header.
bucket: string

The destination bucket for writes. InfluxDB writes all points in the batch to this bucket.

org: string

The destination organization for writes. InfluxDB writes all points in the batch to this organization. If you pass both orgID and org, they must both be valid.

  • Doesn't require org or orgID.
  • Writes to the bucket in the organization associated with the authorization (API token).
  • Requires either org or orgID.
  • InfluxDB writes all points in the batch to this organization.
orgID?: string

The ID of the destination organization for writes. If you pass both orgID and org, they must both be valid.

  • Doesn't require org or orgID.
  • Writes to the bucket in the organization associated with the authorization (API token).
  • Requires either org or orgID.
  • InfluxDB writes all points in the batch to this organization.
precision?: any

The precision for unix timestamps in the line protocol batch.

MMNEPVFCICPMFPCPTTAAATR