Class BucketRetentionRules
BucketRetentionRules
Inheritance
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class BucketRetentionRules : IEquatable<BucketRetentionRules>
Constructors
BucketRetentionRules()
Initializes a new instance of the Bucket
Declaration
protected BucketRetentionRules()
BucketRetentionRules(BucketRetentionRules.TypeEnum, Nullable<Int64>, Nullable<Int64>)
Initializes a new instance of the Bucket
Declaration
public BucketRetentionRules(BucketRetentionRules.TypeEnum type = default(BucketRetentionRules.TypeEnum), long? everySeconds = null, long? shardGroupDurationSeconds = null)
Parameters
Type | Name | Description |
---|---|---|
Bucket |
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. (required). |
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 BucketRetentionRules.TypeEnum Type { get; set; }
Property Value
Type | Description |
---|---|
Bucket |
Methods
Equals(BucketRetentionRules)
Returns true if BucketRetentionRules instances are equal
Declaration
public bool Equals(BucketRetentionRules input)
Parameters
Type | Name | Description |
---|---|---|
Bucket |
input | Instance of BucketRetentionRules 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 |