Class CoreMetric
java.lang.Object
software.amazon.awssdk.core.metrics.CoreMetric
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe duration of the API call.True if the API call succeeded, false otherwise.The extended request ID of the service request.The request ID of the service request.The duration of time that the SDK has waited before this API call attempt, based on theRetryPolicy.backoffStrategy()
.The duration of time taken to fetch signing credentials for the API call.The duration of time it took to resolve the endpoint used for the API call.The type of error that occurred for a call attempt.The duration of time taken to marshall the SDK request to an HTTP request.The name of the service operation being invoked.The read throughput of the client, defined asNumberOfResponseBytesRead / (TTLB - TTFB)
.The number of retries that the SDK performed in the execution of the request.The duration of time taken to connect to the service (or acquire a connection from the connection pool), send the serialized request and receive the initial response (e.g.The endpoint for the service.The unique ID for the service.The duration of time taken to sign the HTTP request.The duration of time between from sending the HTTP request (including acquiring a connection) to the service, and receiving the first byte of the headers in the response.The duration of time between from sending the HTTP request (including acquiring a connection) to the service, and receiving the last byte of the response.The duration of time taken to fetch signing credentials for the API call.The duration of time taken to unmarshall the HTTP response to an SDK response. -
Method Summary
-
Field Details
-
SERVICE_ID
-
OPERATION_NAME
-
API_CALL_SUCCESSFUL
-
RETRY_COUNT
-
SERVICE_ENDPOINT
-
API_CALL_DURATION
The duration of the API call. This includes all call attempts made.API_CALL_DURATION ~= CREDENTIALS_FETCH_DURATION + MARSHALLING_DURATION + SUM_ALL(BACKOFF_DELAY_DURATION) + SUM_ALL(SIGNING_DURATION) + SUM_ALL(SERVICE_CALL_DURATION) + SUM_ALL(UNMARSHALLING_DURATION)
-
CREDENTIALS_FETCH_DURATION
-
TOKEN_FETCH_DURATION
-
BACKOFF_DELAY_DURATION
The duration of time that the SDK has waited before this API call attempt, based on theRetryPolicy.backoffStrategy()
. -
MARSHALLING_DURATION
-
SIGNING_DURATION
-
SERVICE_CALL_DURATION
The duration of time taken to connect to the service (or acquire a connection from the connection pool), send the serialized request and receive the initial response (e.g. HTTP status code and headers). This DOES NOT include the time taken to read the entire response from the service. -
UNMARSHALLING_DURATION
-
AWS_REQUEST_ID
-
AWS_EXTENDED_REQUEST_ID
-
TIME_TO_FIRST_BYTE
-
TIME_TO_LAST_BYTE
The duration of time between from sending the HTTP request (including acquiring a connection) to the service, and receiving the last byte of the response.Note that for APIs that return streaming responses, this metric spans the time until the
ResponseTransformer
orAsyncResponseTransformer
completes. -
READ_THROUGHPUT
The read throughput of the client, defined asNumberOfResponseBytesRead / (TTLB - TTFB)
. This value is in bytes per second.Note that this metric only measures the bytes read from within the
ResponseTransformer
orAsyncResponseTransformer
. Data that is read outside the transformer (e.g. when the response stream is returned as the result of the transformer) is not included in the calculation. -
ENDPOINT_RESOLVE_DURATION
-
ERROR_TYPE
The type of error that occurred for a call attempt.The following are possible values:
- Throttling - The service responded with a throttling error.
- ServerError - The service responded with an error other than throttling.
- ClientTimeout - A client timeout occurred, either at the API call level, or API call attempt level.
- IO - An I/O error occurred.
- Other - Catch-all for other errors that don't fall into the above categories.
-