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