CosmosDiagnosticsRequestInfo Class
- java.
lang. Object - com.
azure. cosmos. CosmosDiagnosticsRequestInfo
- com.
public final class CosmosDiagnosticsRequestInfo
This class represents diagnostic information for transport requests (calls to a replica in direct mode, calls to the Gateway for example to get metadata like physical addresses of replica for a partition.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getActivityId()
Gets the Activity used to track this request in the Cosmos DB service. |
Duration |
getBackendLatency()
Gets the backend latency if available or null when backend latency isn't available for a request |
Duration |
getDuration()
Gets the total duration for processing this request. |
String |
getPartitionId()
Gets the identifier for the physical partition/shard this request was processed in or null when the request was not targeting a replica/partition directly. |
String |
getPartitionKeyRangeId()
Gets the Partition |
Collection<Cosmos |
getRequestPipelineEvents()
Gets more granular information about different stages of the request pipeline. |
String |
getRequestType()
Gets the type of request |
Instant |
getStartTime()
Gets the start time of the request. |
Methods inherited from java.lang.Object
Method Details
getActivityId
public String getActivityId()
Gets the Activity used to track this request in the Cosmos DB service.
Returns:
getBackendLatency
public Duration getBackendLatency()
Gets the backend latency if available or null when backend latency isn't available for a request
Returns:
getDuration
public Duration getDuration()
Gets the total duration for processing this request.
Returns:
getPartitionId
public String getPartitionId()
Gets the identifier for the physical partition/shard this request was processed in or null when the request was not targeting a replica/partition directly.
Returns:
getPartitionKeyRangeId
public String getPartitionKeyRangeId()
Gets the PartitionKeyRangeId for the physical partition/shard this request was processed in or null when the request was not targeting a replica/partition directly.
Returns:
getRequestPipelineEvents
public Collection
Gets more granular information about different stages of the request pipeline.
Returns:
getRequestType
public String getRequestType()
Gets the type of request
Returns:
getStartTime
public Instant getStartTime()
Gets the start time of the request.
Returns:
Applies to
Azure SDK for Java