influxdb-client-js

InfluxDB 2.0 JavaScript client

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

Home > @influxdata/influxdb-client-apis > PostBucketRequest

PostBucketRequest interface

Signature:

interface PostBucketRequest 

Properties

Property Modifiers Type Description
description?   string (Optional) A description of the bucket.
name   string The name of the bucket.
orgID   string Organization ID. The ID of the organization.
retentionRules?   RetentionRules (Optional)
rp?   string (Optional) Retention policy is an InfluxDB 1.x concept that represents the duration of time that each data point in the retention policy persists. Use rp for compatibility with InfluxDB 1.x. The InfluxDB 2.x and Cloud equivalent is retention period.
schemaType?   SchemaType <p>(Optional) Schema Type. Use explicit to enforce column names, tags, fields, and data types for your data.</p><p>#### InfluxDB Cloud</p><p>- Default is implicit.</p><p>#### InfluxDB OSS</p><p>- Doesn’t support schemaType.</p>