| Package | Description |
|---|---|
| com.ibm.cos.v2.core.http | |
| com.ibm.cos.v2.core.internal.util | |
| com.ibm.cos.v2.core.metrics | |
| com.ibm.cos.v2.http | |
| com.ibm.cos.v2.metrics | |
| com.ibm.cos.v2.metrics.internal |
| Modifier and Type | Field and Description |
|---|---|
SdkMetric<? super Duration> |
MetricCollectingHttpResponseHandler.metric |
| Modifier and Type | Method and Description |
|---|---|
static <T> MetricCollectingHttpResponseHandler<T> |
MetricCollectingHttpResponseHandler.create(SdkMetric<? super Duration> durationMetric,
HttpResponseHandler<T> delegateToTime) |
| Modifier and Type | Method and Description |
|---|---|
static <T> CompletableFuture<T> |
MetricUtils.reportDuration(Supplier<CompletableFuture<T>> c,
MetricCollector metricCollector,
SdkMetric<Duration> metric)
Report a duration metric of the given
CompletableFuture supplier. |
| Modifier and Type | Field and Description |
|---|---|
static SdkMetric<Duration> |
CoreMetric.API_CALL_DURATION
The duration of the API call.
|
static SdkMetric<Boolean> |
CoreMetric.API_CALL_SUCCESSFUL
True if the API call succeeded, false otherwise.
|
static SdkMetric<String> |
CoreMetric.AWS_EXTENDED_REQUEST_ID
The extended request ID of the service request.
|
static SdkMetric<String> |
CoreMetric.AWS_REQUEST_ID
The request ID of the service request.
|
static SdkMetric<Duration> |
CoreMetric.BACKOFF_DELAY_DURATION
The duration of time that the SDK has waited before this API call attempt, based on the
RetryPolicy.backoffStrategy(). |
static SdkMetric<Duration> |
CoreMetric.CREDENTIALS_FETCH_DURATION
The duration of time taken to fetch signing credentials for the API call.
|
static SdkMetric<Duration> |
CoreMetric.ENDPOINT_RESOLVE_DURATION
The duration of time it took to resolve the endpoint used for the API call.
|
static SdkMetric<String> |
CoreMetric.ERROR_TYPE
The type of error that occurred for a call attempt.
|
static SdkMetric<Duration> |
CoreMetric.MARSHALLING_DURATION
The duration of time taken to marshall the SDK request to an HTTP request.
|
static SdkMetric<String> |
CoreMetric.OPERATION_NAME
The name of the service operation being invoked.
|
static SdkMetric<Double> |
CoreMetric.READ_THROUGHPUT
The read throughput of the client, defined as
NumberOfResponseBytesRead / (TTLB - TTFB). |
static SdkMetric<Integer> |
CoreMetric.RETRY_COUNT
The number of retries that the SDK performed in the execution of the request.
|
static SdkMetric<Duration> |
CoreMetric.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.
|
static SdkMetric<URI> |
CoreMetric.SERVICE_ENDPOINT
The endpoint for the service.
|
static SdkMetric<String> |
CoreMetric.SERVICE_ID
The unique ID for the service.
|
static SdkMetric<Duration> |
CoreMetric.SIGNING_DURATION
The duration of time taken to sign the HTTP request.
|
static SdkMetric<Duration> |
CoreMetric.TIME_TO_FIRST_BYTE
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.
|
static SdkMetric<Duration> |
CoreMetric.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.
|
static SdkMetric<Duration> |
CoreMetric.TOKEN_FETCH_DURATION
The duration of time taken to fetch signing credentials for the API call.
|
static SdkMetric<Duration> |
CoreMetric.UNMARSHALLING_DURATION
The duration of time taken to unmarshall the HTTP response to an SDK response.
|
| Modifier and Type | Field and Description |
|---|---|
static SdkMetric<Integer> |
HttpMetric.AVAILABLE_CONCURRENCY
The number of additional concurrent requests that can be supported by the HTTP client without needing to establish
additional connections to the target server.
|
static SdkMetric<Duration> |
HttpMetric.CONCURRENCY_ACQUIRE_DURATION
The time taken to acquire a channel from the connection pool.
|
static SdkMetric<String> |
HttpMetric.HTTP_CLIENT_NAME
The name of the HTTP client.
|
static SdkMetric<Integer> |
HttpMetric.HTTP_STATUS_CODE
The status code of the HTTP response.
|
static SdkMetric<Integer> |
HttpMetric.LEASED_CONCURRENCY
The number of requests that are currently being executed by the HTTP client.
|
static SdkMetric<Integer> |
Http2Metric.LOCAL_STREAM_WINDOW_SIZE_IN_BYTES
The local HTTP/2 window size in bytes for the stream that this request was executed on.
|
static SdkMetric<Integer> |
HttpMetric.MAX_CONCURRENCY
The maximum number of concurrent requests that is supported by the HTTP client.
|
static SdkMetric<Integer> |
HttpMetric.PENDING_CONCURRENCY_ACQUIRES
The number of requests that are awaiting concurrency to be made available from the HTTP client.
|
static SdkMetric<Integer> |
Http2Metric.REMOTE_STREAM_WINDOW_SIZE_IN_BYTES
The remote HTTP/2 window size in bytes for the stream that this request was executed on.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> SdkMetric<T> |
SdkMetric.create(String name,
Class<T> clzz,
MetricLevel level,
MetricCategory c1,
MetricCategory... cn)
Create a new metric.
|
static <T> SdkMetric<T> |
SdkMetric.create(String name,
Class<T> clzz,
MetricLevel level,
Set<MetricCategory> categories)
Create a new metric.
|
SdkMetric<T> |
MetricRecord.metric() |
| Modifier and Type | Method and Description |
|---|---|
<T> List<T> |
MetricCollection.metricValues(SdkMetric<T> metric)
Return all the values of the given metric.
|
<T> void |
NoOpMetricCollector.reportMetric(SdkMetric<T> metric,
T data) |
<T> void |
MetricCollector.reportMetric(SdkMetric<T> metric,
T data)
Report a metric.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultSdkMetric<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> SdkMetric<T> |
DefaultSdkMetric.create(String name,
Class<T> clzz,
MetricLevel level,
MetricCategory c1,
MetricCategory... cn)
Create a new metric.
|
static <T> SdkMetric<T> |
DefaultSdkMetric.create(String name,
Class<T> clzz,
MetricLevel level,
Set<MetricCategory> categories)
Create a new metric.
|
SdkMetric<T> |
DefaultMetricRecord.metric() |
| Modifier and Type | Method and Description |
|---|---|
<T> List<T> |
EmptyMetricCollection.metricValues(SdkMetric<T> metric) |
<T> List<T> |
DefaultMetricCollection.metricValues(SdkMetric<T> metric) |
<T> void |
DefaultMetricCollector.reportMetric(SdkMetric<T> metric,
T data) |
| Constructor and Description |
|---|
DefaultMetricRecord(SdkMetric<T> metric,
T value) |
| Constructor and Description |
|---|
DefaultMetricCollection(String name,
Map<SdkMetric<?>,List<MetricRecord<?>>> metrics,
List<MetricCollection> children) |
Copyright © 2026. All rights reserved.