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 Health
Declaration
protected HealthCheck()
HealthCheck(String, String, List<HealthCheck>, HealthCheck.StatusEnum, String, String)
Initializes a new instance of the Health
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. |
name | name (required). |
System. |
message | message. |
List<Health |
checks | checks. |
Health |
status | status (required). |
System. |
version | version. |
System. |
commit | commit. |
Properties
Checks
Gets or Sets Checks
Declaration
public List<HealthCheck> Checks { get; set; }
Property Value
Type | Description |
---|---|
List<Health |
Commit
Gets or Sets Commit
Declaration
public string Commit { get; set; }
Property Value
Type | Description |
---|---|
System. |
Message
Gets or Sets Message
Declaration
public string Message { get; set; }
Property Value
Type | Description |
---|---|
System. |
Name
Gets or Sets Name
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System. |
Status
Gets or Sets Status
Declaration
public HealthCheck.StatusEnum Status { get; set; }
Property Value
Type | Description |
---|---|
Health |
Version
Gets or Sets Version
Declaration
public string Version { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
Equals(HealthCheck)
Returns true if HealthCheck instances are equal
Declaration
public bool Equals(HealthCheck input)
Parameters
Type | Name | Description |
---|---|---|
Health |
input | Instance of HealthCheck 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 |