Class HealthCheck
HealthCheck
Inheritance
System.Object
HealthCheck
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class HealthCheck : IEquatable<HealthCheck>
Constructors
HealthCheck()
Initializes a new instance of the HealthCheck class.
Declaration
protected HealthCheck()
HealthCheck(String, String, List<HealthCheck>, HealthCheck.StatusEnum, String, String)
Initializes a new instance of the HealthCheck class.
Declaration
public HealthCheck(string name = null, string message = null, List<HealthCheck> checks = null, HealthCheck.StatusEnum status = (HealthCheck.StatusEnum)0, string version = null, string commit = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | name (required). |
System.String | message | message. |
List<HealthCheck> | checks | checks. |
HealthCheck.StatusEnum | status | status (required). |
System.String | version | version. |
System.String | commit | commit. |
Properties
Checks
Gets or Sets Checks
Declaration
public List<HealthCheck> Checks { get; set; }
Property Value
Type | Description |
---|---|
List<HealthCheck> |
Commit
Gets or Sets Commit
Declaration
public string Commit { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Message
Gets or Sets Message
Declaration
public string Message { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Gets or Sets Name
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Status
Gets or Sets Status
Declaration
public HealthCheck.StatusEnum Status { get; set; }
Property Value
Type | Description |
---|---|
HealthCheck.StatusEnum |
Version
Gets or Sets Version
Declaration
public string Version { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Equals(HealthCheck)
Returns true if HealthCheck instances are equal
Declaration
public bool Equals(HealthCheck input)
Parameters
Type | Name | Description |
---|---|---|
HealthCheck | input | Instance of HealthCheck 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 |