public class ApiCallMonitoringEvent extends ApiMonitoringEvent
| Modifier and Type | Field and Description |
|---|---|
static String |
API_CALL_MONITORING_EVENT_TYPE |
| Constructor and Description |
|---|
ApiCallMonitoringEvent() |
getApi, getClientId, getRegion, getService, getTimestamp, getUserAgent, getVersionpublic static final String API_CALL_MONITORING_EVENT_TYPE
public ApiCallMonitoringEvent withApi(String api)
ApiMonitoringEventwithApi in class ApiMonitoringEventapi - The new api value.public ApiCallMonitoringEvent withVersion(Integer version)
ApiMonitoringEventwithVersion in class ApiMonitoringEventversion - the new version value.public ApiCallMonitoringEvent withUserAgent(String userAgent)
ApiMonitoringEventwithUserAgent in class ApiMonitoringEventuserAgent - The new userAgent value.public ApiCallMonitoringEvent withRegion(String region)
ApiMonitoringEventwithRegion in class ApiMonitoringEventregion - The new region value.public ApiCallMonitoringEvent withService(String service)
ApiMonitoringEventwithService in class ApiMonitoringEventservice - The new service value.public ApiCallMonitoringEvent withClientId(String clientId)
ApiMonitoringEventwithClientId in class ApiMonitoringEventclientId - The new clientId value.public ApiCallMonitoringEvent withTimestamp(Long timestamp)
This is when the request is first seen by the service client.
withTimestamp in class ApiMonitoringEventtimestamp - The new timestamp value.public Integer getAttemptCount()
public ApiCallMonitoringEvent withAttemptCount(Integer attemptCount)
attemptCount - The new attemptCount value.public Long getLatency()
public ApiCallMonitoringEvent withLatency(Long latency)
latency - The new latency value.public int getApiCallTimeout()
public ApiCallMonitoringEvent withApiCallTimeout(int apiCallTimeout)
apiCallTimeout - The new apiCallTimeout value.public int getMaxRetriesExceeded()
public ApiCallMonitoringEvent withMaxRetriesExceeded(int maxRetriesExceeded)
maxRetriesExceeded - The new maxRetriesExceeded value.public String getFinalAwsException()
ApiCallAttemptMonitoringEvent.getAwsException() from the last reported API call attempt. This does
not include any exceptions raised between the completion of last API call attempt and the completion of the API call.
Consequently, this may be null even if an AwsException thrown by the client.public ApiCallMonitoringEvent withFinalAwsException(String finalAwsException)
public String getFinalAwsExceptionMessage()
ApiCallAttemptMonitoringEvent.getAwsExceptionMessage() from the last reported API call attempt. This does
not include any exceptions raised between the completion of last API call attempt and the completion of the API call.
Consequently, this may be null even if an AwsException thrown by the client.public ApiCallMonitoringEvent withFinalAwsExceptionMessage(String finalAwsExceptionMessage)
public String getFinalSdkException()
ApiCallAttemptMonitoringEvent.getSdkException() from the last reported API call attempt. This does
not include any exceptions raised between the completion of last API call attempt and the completion of the API call.
Consequently, this may be null even if an SdkException thrown by the client.public ApiCallMonitoringEvent withFinalSdkException(String finalSdkException)
public String getFinalSdkExceptionMessage()
ApiCallAttemptMonitoringEvent.getSdkExceptionMessage() from the last reported API call attempt. This does
not include any exceptions raised between the completion of last API call attempt and the completion of the API call.
Consequently, this may be null even if an SdkException thrown by the client.public ApiCallMonitoringEvent withFinalSdkExceptionMessage(String finalSdkExceptionMessage)
public Integer getFinalHttpStatusCode()
public ApiCallMonitoringEvent withFinalHttpStatusCode(Integer finalHttpStatusCode)
public String getType()
getType in class ApiMonitoringEvent