InfluxDB 2.0 JavaScript client
Home > @influxdata/influxdb-client-apis > RetentionRule
Signature:
interface RetentionRule
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) |