HealthCheck Class

  • java.lang.Object
    • com.azure.resourcemanager.devcenter.models.HealthCheck

Implements

public final class HealthCheck
implements JsonSerializable<HealthCheck>

An individual health check item.

Constructor Summary

Constructor Description
HealthCheck()

Creates an instance of HealthCheck class.

Method Summary

Modifier and Type Method and Description
String additionalDetails()

Get the additionalDetails property: Additional details about the health check or the recommended action.

String displayName()

Get the displayName property: The display name of this health check item.

OffsetDateTime endDateTime()

Get the endDateTime property: End time of the health check item.

String errorType()

Get the errorType property: The type of error that occurred during this health check.

static HealthCheck fromJson(JsonReader jsonReader)

Reads an instance of HealthCheck from the JsonReader.

String recommendedAction()

Get the recommendedAction property: The recommended action to fix the corresponding error.

OffsetDateTime startDateTime()

Get the startDateTime property: Start time of health check item.

HealthCheckStatus status()

Get the status property: The status of the health check item.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

HealthCheck

public HealthCheck()

Creates an instance of HealthCheck class.

Method Details

additionalDetails

public String additionalDetails()

Get the additionalDetails property: Additional details about the health check or the recommended action.

Returns:

the additionalDetails value.

displayName

public String displayName()

Get the displayName property: The display name of this health check item.

Returns:

the displayName value.

endDateTime

public OffsetDateTime endDateTime()

Get the endDateTime property: End time of the health check item.

Returns:

the endDateTime value.

errorType

public String errorType()

Get the errorType property: The type of error that occurred during this health check.

Returns:

the errorType value.

fromJson

public static HealthCheck fromJson(JsonReader jsonReader)

Reads an instance of HealthCheck from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of HealthCheck if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the HealthCheck.

recommendedAction

public String recommendedAction()

Get the recommendedAction property: The recommended action to fix the corresponding error.

Returns:

the recommendedAction value.

startDateTime

public OffsetDateTime startDateTime()

Get the startDateTime property: Start time of health check item.

Returns:

the startDateTime value.

status

public HealthCheckStatus status()

Get the status property: The status of the health check item.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to