influxdb-client-js

InfluxDB 2.0 JavaScript client

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

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

RetentionRule interface

Signature:

interface RetentionRule 

Properties

Property Modifiers Type Description
everySeconds   number The duration in seconds for how long data will be kept in the database. The default duration is 2592000 (30 days). 0 represents infinite retention.
shardGroupDurationSeconds?   number <p>(Optional) The shard group duration. The duration or interval (in seconds) that each shard group covers.</p><p>#### InfluxDB Cloud</p><p>- Does not use shardGroupDurationsSeconds.</p><p>#### InfluxDB OSS</p><p>- Default value depends on the bucket retention period.</p>
type?   ‘expire’ (Optional)