EndpointHealthDataInner Class

  • java.lang.Object
    • com.azure.resourcemanager.iothub.fluent.models.EndpointHealthDataInner

public final class EndpointHealthDataInner

The health data for an endpoint.

Constructor Summary

Constructor Description
EndpointHealthDataInner()

Creates an instance of EndpointHealthDataInner class.

Method Summary

Modifier and Type Method and Description
String endpointId()

Get the endpointId property: Id of the endpoint.

EndpointHealthStatus healthStatus()

Get the healthStatus property: Health statuses have following meanings.

String lastKnownError()

Get the lastKnownError property: Last error obtained when a message failed to be delivered to iot hub.

OffsetDateTime lastKnownErrorTime()

Get the lastKnownErrorTime property: Time at which the last known error occurred.

OffsetDateTime lastSendAttemptTime()

Get the lastSendAttemptTime property: Last time iot hub tried to send a message to the endpoint.

OffsetDateTime lastSuccessfulSendAttemptTime()

Get the lastSuccessfulSendAttemptTime property: Last time iot hub successfully sent a message to the endpoint.

void validate()

Validates the instance.

EndpointHealthDataInner withEndpointId(String endpointId)

Set the endpointId property: Id of the endpoint.

EndpointHealthDataInner withHealthStatus(EndpointHealthStatus healthStatus)

Set the healthStatus property: Health statuses have following meanings.

EndpointHealthDataInner withLastKnownError(String lastKnownError)

Set the lastKnownError property: Last error obtained when a message failed to be delivered to iot hub.

EndpointHealthDataInner withLastKnownErrorTime(OffsetDateTime lastKnownErrorTime)

Set the lastKnownErrorTime property: Time at which the last known error occurred.

EndpointHealthDataInner withLastSendAttemptTime(OffsetDateTime lastSendAttemptTime)

Set the lastSendAttemptTime property: Last time iot hub tried to send a message to the endpoint.

EndpointHealthDataInner withLastSuccessfulSendAttemptTime(OffsetDateTime lastSuccessfulSendAttemptTime)

Set the lastSuccessfulSendAttemptTime property: Last time iot hub successfully sent a message to the endpoint.

Methods inherited from java.lang.Object

Constructor Details

EndpointHealthDataInner

public EndpointHealthDataInner()

Creates an instance of EndpointHealthDataInner class.

Method Details

endpointId

public String endpointId()

Get the endpointId property: Id of the endpoint.

Returns:

the endpointId value.

healthStatus

public EndpointHealthStatus healthStatus()

Get the healthStatus property: Health statuses have following meanings. The 'healthy' status shows that the endpoint is accepting messages as expected. The 'unhealthy' status shows that the endpoint is not accepting messages as expected and IoT Hub is retrying to send data to this endpoint. The status of an unhealthy endpoint will be updated to healthy when IoT Hub has established an eventually consistent state of health. The 'dead' status shows that the endpoint is not accepting messages, after IoT Hub retried sending messages for the retrial period. See IoT Hub metrics to identify errors and monitor issues with endpoints. The 'unknown' status shows that the IoT Hub has not established a connection with the endpoint. No messages have been delivered to or rejected from this endpoint.

Returns:

the healthStatus value.

lastKnownError

public String lastKnownError()

Get the lastKnownError property: Last error obtained when a message failed to be delivered to iot hub.

Returns:

the lastKnownError value.

lastKnownErrorTime

public OffsetDateTime lastKnownErrorTime()

Get the lastKnownErrorTime property: Time at which the last known error occurred.

Returns:

the lastKnownErrorTime value.

lastSendAttemptTime

public OffsetDateTime lastSendAttemptTime()

Get the lastSendAttemptTime property: Last time iot hub tried to send a message to the endpoint.

Returns:

the lastSendAttemptTime value.

lastSuccessfulSendAttemptTime

public OffsetDateTime lastSuccessfulSendAttemptTime()

Get the lastSuccessfulSendAttemptTime property: Last time iot hub successfully sent a message to the endpoint.

Returns:

the lastSuccessfulSendAttemptTime value.

validate

public void validate()

Validates the instance.

withEndpointId

public EndpointHealthDataInner withEndpointId(String endpointId)

Set the endpointId property: Id of the endpoint.

Parameters:

endpointId - the endpointId value to set.

Returns:

the EndpointHealthDataInner object itself.

withHealthStatus

public EndpointHealthDataInner withHealthStatus(EndpointHealthStatus healthStatus)

Set the healthStatus property: Health statuses have following meanings. The 'healthy' status shows that the endpoint is accepting messages as expected. The 'unhealthy' status shows that the endpoint is not accepting messages as expected and IoT Hub is retrying to send data to this endpoint. The status of an unhealthy endpoint will be updated to healthy when IoT Hub has established an eventually consistent state of health. The 'dead' status shows that the endpoint is not accepting messages, after IoT Hub retried sending messages for the retrial period. See IoT Hub metrics to identify errors and monitor issues with endpoints. The 'unknown' status shows that the IoT Hub has not established a connection with the endpoint. No messages have been delivered to or rejected from this endpoint.

Parameters:

healthStatus - the healthStatus value to set.

Returns:

the EndpointHealthDataInner object itself.

withLastKnownError

public EndpointHealthDataInner withLastKnownError(String lastKnownError)

Set the lastKnownError property: Last error obtained when a message failed to be delivered to iot hub.

Parameters:

lastKnownError - the lastKnownError value to set.

Returns:

the EndpointHealthDataInner object itself.

withLastKnownErrorTime

public EndpointHealthDataInner withLastKnownErrorTime(OffsetDateTime lastKnownErrorTime)

Set the lastKnownErrorTime property: Time at which the last known error occurred.

Parameters:

lastKnownErrorTime - the lastKnownErrorTime value to set.

Returns:

the EndpointHealthDataInner object itself.

withLastSendAttemptTime

public EndpointHealthDataInner withLastSendAttemptTime(OffsetDateTime lastSendAttemptTime)

Set the lastSendAttemptTime property: Last time iot hub tried to send a message to the endpoint.

Parameters:

lastSendAttemptTime - the lastSendAttemptTime value to set.

Returns:

the EndpointHealthDataInner object itself.

withLastSuccessfulSendAttemptTime

public EndpointHealthDataInner withLastSuccessfulSendAttemptTime(OffsetDateTime lastSuccessfulSendAttemptTime)

Set the lastSuccessfulSendAttemptTime property: Last time iot hub successfully sent a message to the endpoint.

Parameters:

lastSuccessfulSendAttemptTime - the lastSuccessfulSendAttemptTime value to set.

Returns:

the EndpointHealthDataInner object itself.

Applies to