JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.monitoring

Class ApiCallMonitoringEvent

  • All Implemented Interfaces:
    MonitoringEvent


    public class ApiCallMonitoringEvent
    extends ApiMonitoringEvent 
    A Monitoring Event that describes the results of an Api Call.
    • Field Detail

    • Constructor Detail

      • ApiCallMonitoringEvent

        public ApiCallMonitoringEvent()
    • Method Detail

      • withTimestamp

        public ApiCallMonitoringEvent withTimestamp(Long timestamp)
        Sets the timestamp, in milliseconds, since January 1st, 1970, for the time point at which the event.

        This is when the request is first seen by the service client.

        Specified by:
        withTimestamp in class ApiMonitoringEvent
        Parameters:
        timestamp - The new timestamp value.
        Returns:
        This object for method chaining.
      • getAttemptCount

        public Integer getAttemptCount()
        Returns:
        The total number of attempts that were made by the service client to fulfill this request before succeeding or failing.
      • withAttemptCount

        public ApiCallMonitoringEvent withAttemptCount(Integer attemptCount)
        Sets the attemptCount
        Parameters:
        attemptCount - The new attemptCount value.
        Returns:
        This object for method chaining.
      • getLatency

        public Long getLatency()
        Returns:
        The elapsed time, in milliseconds, between when the Api Call was begun and when a final response or error is manifested to the caller.
      • withLatency

        public ApiCallMonitoringEvent withLatency(Long latency)
        Sets the latency
        Parameters:
        latency - The new latency value.
        Returns:
        This object for method chaining.
      • getApiCallTimeout

        public int getApiCallTimeout()
        Returns:
        a boolean (0/1) value that is 0 unless the Api call failed due to hitting an Api Call time limit.
      • withApiCallTimeout

        public ApiCallMonitoringEvent withApiCallTimeout(int apiCallTimeout)
        Sets the api call timeout
        Parameters:
        apiCallTimeout - The new apiCallTimeout value.
        Returns:
        This object for method chaining.
      • getMaxRetriesExceeded

        public int getMaxRetriesExceeded()
        Returns:
        a boolean (0/1) value that is 0 unless the Api call failed and the final attempt returned a retryable error.
      • withMaxRetriesExceeded

        public ApiCallMonitoringEvent withMaxRetriesExceeded(int maxRetriesExceeded)
        Sets the api call timeout
        Parameters:
        maxRetriesExceeded - The new maxRetriesExceeded value.
        Returns:
        This object for method chaining.
      • getFinalAwsException

        public String getFinalAwsException()
        The 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.
      • getFinalAwsExceptionMessage

        public String getFinalAwsExceptionMessage()
        The 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.
      • getFinalSdkException

        public String getFinalSdkException()
        The 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.
      • getFinalSdkExceptionMessage

        public String getFinalSdkExceptionMessage()
        The 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.
      • getFinalHttpStatusCode

        public Integer getFinalHttpStatusCode()
        The last status code returned by the service. This may be null if the API call or last API call attempt did not succeed.
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /