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 PatchRetentionRule class.
Declaration
protected PatchRetentionRule()
PatchRetentionRule(PatchRetentionRule.TypeEnum, Nullable<Int64>, Nullable<Int64>)
Initializes a new instance of the PatchRetentionRule class.
Declaration
public PatchRetentionRule(PatchRetentionRule.TypeEnum type = default(PatchRetentionRule.TypeEnum), long? everySeconds = null, long? shardGroupDurationSeconds = null)
Parameters
Type | Name | Description |
---|---|---|
PatchRetentionRule.TypeEnum | type | type (required) (default to TypeEnum.Expire). |
System.Nullable<System.Int64> | everySeconds | Duration in seconds for how long data will be kept in the database. 0 means infinite.. |
System.Nullable<System.Int64> | 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.Nullable<System.Int64> | 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.Nullable<System.Int64> | Shard duration measured in seconds. |
Type
Gets or Sets Type
Declaration
public PatchRetentionRule.TypeEnum Type { get; set; }
Property Value
Type | Description |
---|---|
PatchRetentionRule.TypeEnum |
Methods
Equals(PatchRetentionRule)
Returns true if PatchRetentionRule instances are equal
Declaration
public bool Equals(PatchRetentionRule input)
Parameters
Type | Name | Description |
---|---|---|
PatchRetentionRule | input | Instance of PatchRetentionRule to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |