Class StatusRule
StatusRule
Inheritance
System.Object
StatusRule
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class StatusRule : IEquatable<StatusRule>
Constructors
StatusRule(Nullable<RuleStatusLevel>, Nullable<RuleStatusLevel>, Nullable<Int32>, String)
Initializes a new instance of the StatusRule class.
Declaration
public StatusRule(RuleStatusLevel? currentLevel = null, RuleStatusLevel? previousLevel = null, int? count = null, string period = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<RuleStatusLevel> | currentLevel | currentLevel. |
System.Nullable<RuleStatusLevel> | previousLevel | previousLevel. |
System.Nullable<System.Int32> | count | count. |
System.String | period | period. |
Properties
Count
Gets or Sets Count
Declaration
public int? Count { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
CurrentLevel
Gets or Sets CurrentLevel
Declaration
public RuleStatusLevel? CurrentLevel { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<RuleStatusLevel> |
Period
Gets or Sets Period
Declaration
public string Period { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PreviousLevel
Gets or Sets PreviousLevel
Declaration
public RuleStatusLevel? PreviousLevel { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<RuleStatusLevel> |
Methods
Equals(StatusRule)
Returns true if StatusRule instances are equal
Declaration
public bool Equals(StatusRule input)
Parameters
Type | Name | Description |
---|---|---|
StatusRule | input | Instance of StatusRule 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 |