EndpointHealthDataInner Class
- java.
lang. Object - com.
azure. resourcemanager. iothub. fluent. models. EndpointHealthDataInner
- com.
public final class EndpointHealthDataInner
The health data for an endpoint.
Constructor Summary
Constructor | Description |
---|---|
EndpointHealthDataInner() |
Creates an instance of Endpoint |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
endpointId()
Get the endpoint |
Endpoint |
healthStatus()
Get the health |
String |
lastKnownError()
Get the last |
Offset |
lastKnownErrorTime()
Get the last |
Offset |
lastSendAttemptTime()
Get the last |
Offset |
lastSuccessfulSendAttemptTime()
Get the last |
void |
validate()
Validates the instance. |
Endpoint |
withEndpointId(String endpointId)
Set the endpoint |
Endpoint |
withHealthStatus(EndpointHealthStatus healthStatus)
Set the health |
Endpoint |
withLastKnownError(String lastKnownError)
Set the last |
Endpoint |
withLastKnownErrorTime(OffsetDateTime lastKnownErrorTime)
Set the last |
Endpoint |
withLastSendAttemptTime(OffsetDateTime lastSendAttemptTime)
Set the last |
Endpoint |
withLastSuccessfulSendAttemptTime(OffsetDateTime lastSuccessfulSendAttemptTime)
Set the last |
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:
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:
lastKnownError
public String lastKnownError()
Get the lastKnownError property: Last error obtained when a message failed to be delivered to iot hub.
Returns:
lastKnownErrorTime
public OffsetDateTime lastKnownErrorTime()
Get the lastKnownErrorTime property: Time at which the last known error occurred.
Returns:
lastSendAttemptTime
public OffsetDateTime lastSendAttemptTime()
Get the lastSendAttemptTime property: Last time iot hub tried to send a message to the endpoint.
Returns:
lastSuccessfulSendAttemptTime
public OffsetDateTime lastSuccessfulSendAttemptTime()
Get the lastSuccessfulSendAttemptTime property: Last time iot hub successfully sent a message to the endpoint.
Returns:
validate
public void validate()
Validates the instance.
withEndpointId
public EndpointHealthDataInner withEndpointId(String endpointId)
Set the endpointId property: Id of the endpoint.
Parameters:
Returns:
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:
Returns:
withLastKnownError
public EndpointHealthDataInner withLastKnownError(String lastKnownError)
Set the lastKnownError property: Last error obtained when a message failed to be delivered to iot hub.
Parameters:
Returns:
withLastKnownErrorTime
public EndpointHealthDataInner withLastKnownErrorTime(OffsetDateTime lastKnownErrorTime)
Set the lastKnownErrorTime property: Time at which the last known error occurred.
Parameters:
Returns:
withLastSendAttemptTime
public EndpointHealthDataInner withLastSendAttemptTime(OffsetDateTime lastSendAttemptTime)
Set the lastSendAttemptTime property: Last time iot hub tried to send a message to the endpoint.
Parameters:
Returns:
withLastSuccessfulSendAttemptTime
public EndpointHealthDataInner withLastSuccessfulSendAttemptTime(OffsetDateTime lastSuccessfulSendAttemptTime)
Set the lastSuccessfulSendAttemptTime property: Last time iot hub successfully sent a message to the endpoint.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for