Package com.influxdb.client.domain
Class PatchRetentionRule
java.lang.Object
com.influxdb.client.domain.PatchRetentionRule
Updates to a rule to expire or retain data.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
everySeconds
(Integer everySeconds) Duration in seconds for how long data will be kept in the database. 0 means infinite.Shard duration measured in seconds.getType()
Get typeint
hashCode()
void
setEverySeconds
(Integer everySeconds) void
setShardGroupDurationSeconds
(Long shardGroupDurationSeconds) shardGroupDurationSeconds
(Long shardGroupDurationSeconds) toString()
-
Field Details
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_EVERY_SECONDS
- See Also:
-
SERIALIZED_NAME_SHARD_GROUP_DURATION_SECONDS
- See Also:
-
-
Constructor Details
-
PatchRetentionRule
public PatchRetentionRule()
-
-
Method Details
-
getType
Get type- Returns:
- type
-
everySeconds
-
getEverySeconds
Duration in seconds for how long data will be kept in the database. 0 means infinite. minimum: 0- Returns:
- everySeconds
-
setEverySeconds
-
shardGroupDurationSeconds
-
getShardGroupDurationSeconds
Shard duration measured in seconds.- Returns:
- shardGroupDurationSeconds
-
setShardGroupDurationSeconds
-
equals
-
hashCode
public int hashCode() -
toString
-