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 ApiCallAttemptMonitoringEvent

  • All Implemented Interfaces:
    MonitoringEvent


    public class ApiCallAttemptMonitoringEvent
    extends ApiMonitoringEvent 
    A Monitoring Event that described the results of an Api Call Attempt.
    • Field Detail

      • API_CALL_ATTEMPT_MONITORING_EVENT_TYPE

        public static final String API_CALL_ATTEMPT_MONITORING_EVENT_TYPE
        See Also:
        Constant Field Values
    • Constructor Detail

      • ApiCallAttemptMonitoringEvent

        public ApiCallAttemptMonitoringEvent()
    • Method Detail

      • withTimestamp

        public ApiCallAttemptMonitoringEvent 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 attempt is passed to the http client.

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

        public String getFqdn()
        Returns:
        the fully-qualified domain name of the endpoint that the request attempt was submitted to.
      • getAccessKey

        public String getAccessKey()
        Returns:
        Contains the aws_access_key value that was used to sign the http request.
      • withAccessKey

        public ApiCallAttemptMonitoringEvent withAccessKey(String accessKey)
        Sets the accessKey
        Parameters:
        accessKey - The new accessKey value.
        Returns:
        This object for method chaining.
      • getSessionToken

        public String getSessionToken()
        Returns:
        Contains the session token passed in the x-amz-security-token header.
      • withSessionToken

        public ApiCallAttemptMonitoringEvent withSessionToken(String sessionToken)
        Sets the sessionToken
        Parameters:
        sessionToken - The new sessionToken value.
        Returns:
        This object for method chaining.
      • getHttpStatusCode

        public Integer getHttpStatusCode()
        Returns:
        the attempt's response status code, as returned by the http client.
      • withHttpStatusCode

        public ApiCallAttemptMonitoringEvent withHttpStatusCode(Integer httpStatusCode)
        Sets the httpStatusCode
        Parameters:
        httpStatusCode - The new httpStatusCode value.
        Returns:
        This object for method chaining.
      • getxAmznRequestId

        public String getxAmznRequestId()
        Returns:
        the value of x-amzn-RequestId in response header
      • withXAmznRequestId

        public ApiCallAttemptMonitoringEvent withXAmznRequestId(String xAmznRequestId)
        Sets the value of x-amzn-RequestId in response header
        Parameters:
        xAmznRequestId - The new value.
        Returns:
        This object for method chaining.
      • getxAmzRequestId

        public String getxAmzRequestId()
        Returns:
        the value of x-amz-request-id in response header
      • withXAmzRequestId

        public ApiCallAttemptMonitoringEvent withXAmzRequestId(String xAmzRequestId)
        Sets the value of x-amz-request-id in response header
        Parameters:
        xAmzRequestId - The new value.
        Returns:
        This object for method chaining.
      • getxAmzId2

        public String getxAmzId2()
        Returns:
        the value of x-amz-id-2 in response header
      • withXAmzId2

        public ApiCallAttemptMonitoringEvent withXAmzId2(String xAmzId2)
        Sets the value of x-amz-id-2 in response header
        Parameters:
        xAmzId2 - the new value.
        Returns:
        This object for method chaining.
      • getAwsException

        public String getAwsException()
        Returns:
        the Aws exception code
      • withAwsException

        public ApiCallAttemptMonitoringEvent withAwsException(String awsException)
        Sets the awsException
        Parameters:
        awsException - The new awsException value.
        Returns:
        This object for method chaining.
      • getAwsExceptionMessage

        public String getAwsExceptionMessage()
        Returns:
        the exception message
      • withAwsExceptionMessage

        public ApiCallAttemptMonitoringEvent withAwsExceptionMessage(String awsExceptionMessage)
        Sets the awsExceptionMessage
        Parameters:
        awsExceptionMessage - The new awsExceptionMessage value.
        Returns:
        This object for method chaining.
      • getSdkException

        public String getSdkException()
        Returns:
        the exception class name
      • withSdkException

        public ApiCallAttemptMonitoringEvent withSdkException(String sdkException)
        Sets the sdkException
        Parameters:
        sdkException - The new sdkException value.
        Returns:
        This object for method chaining.
      • getSdkExceptionMessage

        public String getSdkExceptionMessage()
        Returns:
        Contains the full text for any attempt-level failure that is due to something other than an Aws exception.
      • withSdkExceptionMessage

        public ApiCallAttemptMonitoringEvent withSdkExceptionMessage(String sdkExceptionMessage)
        Sets the sdkExceptionMessage
        Parameters:
        sdkExceptionMessage - The new sdkExceptionMessage value.
        Returns:
        This object for method chaining.
      • getAttemptLatency

        public Long getAttemptLatency()
        Returns:
        the elapsed time, in milliseconds, between the construction of the http request and the point in time where the http response has been parsed or the attempt has definitively failed
      • withAttemptLatency

        public ApiCallAttemptMonitoringEvent withAttemptLatency(Long attemptLatency)
        Sets the latency
        Parameters:
        attemptLatency - The new latency value.
        Returns:
        This object for method chaining.
      • getRequestLatency

        public Long getRequestLatency()
        Returns:
        the time interval (in milliseconds) between when the request begins transmission to the service and when the response has been parsed, excluding streaming payloads.
      • withRequestLatency

        public ApiCallAttemptMonitoringEvent withRequestLatency(Long requestLatency)
        Sets the requestLatency
        Parameters:
        requestLatency - The new requestLatency value.
        Returns:
        This object for method chaining.
Skip navigation links

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