CosmosDiagnostics Class
- java.
lang. Object - com.
azure. cosmos. CosmosDiagnostics
- com.
public final class CosmosDiagnostics
This class represents response diagnostic statistics associated with a request to Azure Cosmos DB
Method Summary
Modifier and Type | Method and Description |
---|---|
Set<String> |
getContactedRegionNames()
Regions contacted for this request |
Cosmos |
getDiagnosticsContext()
Returns the associated Cosmos |
Duration |
getDuration()
Retrieves duration related to the completion of the request. |
Set<URI> |
getRegionsContacted()
Regions contacted for this request |
String |
getUserAgent()
Gets the User |
String |
toString()
Retrieves Response Diagnostic String |
Methods inherited from java.lang.Object
Method Details
getContactedRegionNames
public Set
Regions contacted for this request
Returns:
getDiagnosticsContext
public CosmosDiagnosticsContext getDiagnosticsContext()
Returns the associated CosmosDiagnosticsContext or null if not associated with any context yet.
Returns:
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:
getRegionsContacted
@Deprecated
public Set
Regions contacted for this request
Returns:
getUserAgent
public String getUserAgent()
Gets the UserAgent header value used by the client issueing this operation
Returns:
toString
public String toString()
Retrieves Response Diagnostic String
Overrides:
CosmosDiagnostics.toString()Returns:
Applies to
Azure SDK for Java
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기