T
- the type of resourcepublic class CosmosResponse<T> extends Object
Modifier and Type | Method and Description |
---|---|
String |
getActivityId()
Gets the Activity ID for the request.
|
String |
getCurrentResourceQuotaUsage()
Gets the current size of this entity (in megabytes (MB) for server resources and in count for master resources)
|
CosmosDiagnostics |
getDiagnostics()
Gets the diagnostics information for the current request to Azure Cosmos DB service.
|
Duration |
getDuration()
Gets the end-to-end request latency for the current request to Azure Cosmos DB service.
|
String |
getMaxResourceQuota()
Gets the maximum size limit for this entity (in megabytes (MB) for server resources and in count for master
resources).
|
T |
getProperties()
Gets properties.
|
double |
getRequestCharge()
Gets the request charge as request units (RU) consumed by the operation.
|
Map<String,String> |
getResponseHeaders()
Gets the headers associated with the response.
|
String |
getSessionToken()
Gets the token used for managing client's consistency requirements.
|
int |
getStatusCode()
Gets the HTTP status code associated with the response.
|
public T getProperties()
public String getMaxResourceQuota()
public String getCurrentResourceQuotaUsage()
public String getActivityId()
public double getRequestCharge()
For more information about the RU and factors that can impact the effective charges please visit Request Units in Azure Cosmos DB
public int getStatusCode()
public String getSessionToken()
public Map<String,String> getResponseHeaders()
public CosmosDiagnostics getDiagnostics()
public Duration getDuration()
Copyright © 2021 Microsoft Corporation. All rights reserved.