Class PatchRetentionRule
Updates to a rule to expire or retain data.
Inheritance
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class PatchRetentionRule : IEquatable<PatchRetentionRule>
Constructors
PatchRetentionRule()
Initializes a new instance of the Patch
Declaration
protected PatchRetentionRule()
PatchRetentionRule(PatchRetentionRule.TypeEnum, Nullable<Int64>, Nullable<Int64>)
Initializes a new instance of the Patch
Declaration
public PatchRetentionRule(PatchRetentionRule.TypeEnum type = default(PatchRetentionRule.TypeEnum), long? everySeconds = null, long? shardGroupDurationSeconds = null)
Parameters
Type | Name | Description |
---|---|---|
Patch |
type | type (required) (default to TypeEnum.Expire). |
System. |
everySeconds | Duration in seconds for how long data will be kept in the database. 0 means infinite.. |
System. |
shardGroupDurationSeconds | Shard duration measured in seconds.. |
Properties
EverySeconds
Duration in seconds for how long data will be kept in the database. 0 means infinite.
Declaration
public long? EverySeconds { get; set; }
Property Value
Type | Description |
---|---|
System. |
Duration in seconds for how long data will be kept in the database. 0 means infinite. |
ShardGroupDurationSeconds
Shard duration measured in seconds.
Declaration
public long? ShardGroupDurationSeconds { get; set; }
Property Value
Type | Description |
---|---|
System. |
Shard duration measured in seconds. |
Type
Gets or Sets Type
Declaration
public PatchRetentionRule.TypeEnum Type { get; set; }
Property Value
Type | Description |
---|---|
Patch |
Methods
Equals(PatchRetentionRule)
Returns true if PatchRetentionRule instances are equal
Declaration
public bool Equals(PatchRetentionRule input)
Parameters
Type | Name | Description |
---|---|---|
Patch |
input | Instance of PatchRetentionRule to be compared |
Returns
Type | Description |
---|---|
System. |
Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System. |
input | Object to be compared |
Returns
Type | Description |
---|---|
System. |
Boolean |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
Hash code |
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System. |
JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
String presentation of the object |