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, getVersion public static final String API_CALL_MONITORING_EVENT_TYPE
public ApiCallMonitoringEvent()
public ApiCallMonitoringEvent withApi(String api)
ApiMonitoringEvent withApi in class ApiMonitoringEvent api - The new api value.public ApiCallMonitoringEvent withVersion(Integer version)
ApiMonitoringEvent withVersion in class ApiMonitoringEvent version - the new version value.public ApiCallMonitoringEvent withUserAgent(String userAgent)
ApiMonitoringEvent withUserAgent in class ApiMonitoringEvent userAgent - The new userAgent value.public ApiCallMonitoringEvent withRegion(String region)
ApiMonitoringEvent withRegion in class ApiMonitoringEvent region - The new region value.public ApiCallMonitoringEvent withService(String service)
ApiMonitoringEvent withService in class ApiMonitoringEvent service - The new service value.public ApiCallMonitoringEvent withClientId(String clientId)
ApiMonitoringEvent withClientId in class ApiMonitoringEvent clientId - The new clientId value.public ApiCallMonitoringEvent withTimestamp(Long timestamp)
This is when the request is first seen by the service client.
withTimestamp in class ApiMonitoringEvent timestamp - 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