Class TagRule
TagRule
Inheritance
System.Object
TagRule
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class TagRule : IEquatable<TagRule>
Constructors
TagRule(String, String, Nullable<TagRule.OperatorEnum>)
Initializes a new instance of the TagRule class.
Declaration
public TagRule(string key = null, string value = null, TagRule.OperatorEnum? _operator = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | key. |
System.String | value | value. |
System.Nullable<TagRule.OperatorEnum> | _operator | _operator. |
Properties
Key
Gets or Sets Key
Declaration
public string Key { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Operator
Gets or Sets Operator
Declaration
public TagRule.OperatorEnum? Operator { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<TagRule.OperatorEnum> |
Value
Gets or Sets Value
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Equals(TagRule)
Returns true if TagRule instances are equal
Declaration
public bool Equals(TagRule input)
Parameters
Type | Name | Description |
---|---|---|
TagRule | input | Instance of TagRule 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 |