influxdb-client-js

InfluxDB 2.0 JavaScript client

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

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

PatchRetentionRule interface

Signature:

interface PatchRetentionRule 

Properties

Property Modifiers Type Description
everySeconds   number The number of seconds to keep data. Default duration is 2592000 (30 days). 0 represents infinite retention.
shardGroupDurationSeconds?   number <p>(Optional) The shard group duration. The number of seconds that each shard group covers.</p><p>#### InfluxDB Cloud</p><p>- Doesn’t use shardGroupDurationsSeconds.</p><p>#### InfluxDB OSS</p><p>- Default value depends on the bucket retention period.</p><p>#### Related guides</p><p>- InfluxDB shards and shard groups</p>
type?   ‘expire’ (Optional)