Package com.azure.cosmos
Class CosmosDiagnostics
- java.lang.Object
-
- com.azure.cosmos.CosmosDiagnostics
-
public final class CosmosDiagnostics extends Object
This class represents response diagnostic statistics associated with a request to Azure Cosmos DB
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Set<String>
getContactedRegionNames()
Regions contacted for this requestDuration
getDuration()
Retrieves duration related to the completion of the request.Set<URI>
getRegionsContacted()
Deprecated.String
toString()
Retrieves Response Diagnostic String
-
-
-
Method Detail
-
toString
public String toString()
Retrieves Response Diagnostic String
-
getDuration
public Duration getDuration()
Retrieves duration related to the completion of the request. This represents end to end duration of an operation including all the retries. This is meant for point operation only, for query please use toString() to get full query diagnostics.- Returns:
- request completion duration
-
getRegionsContacted
@Beta(value=V4_9_0, warningText="Preview API - subject to change in non-backwards compatible way") @Deprecated public Set<URI> getRegionsContacted()
Deprecated.Regions contacted for this request- Returns:
- set of regions contacted for this request
-
-