public class CosmosResponse<T extends Resource> extends Object
Modifier and Type | Method and Description |
---|---|
String |
getActivityId()
Gets the Activity ID for the request.
|
CosmosResponseDiagnostics |
getCosmosResponseDiagnostics()
Gets the diagnostics information for the current request to Azure Cosmos DB service.
|
String |
getCurrentResourceQuotaUsage()
Gets the current size of this entity (in megabytes (MB) for server resources and in count for master resources)
|
String |
getMaxResourceQuota()
Gets the maximum size limit for this entity (in megabytes (MB) for server resources and in count for master
resources).
|
T |
getProperties() |
double |
getRequestCharge()
Gets the number of index paths (terms) generated by the operation.
|
Duration |
getRequestLatency()
Gets the end-to-end request latency for the current request to Azure Cosmos DB service.
|
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()
public int getStatusCode()
public String getSessionToken()
public Map<String,String> getResponseHeaders()
public CosmosResponseDiagnostics getCosmosResponseDiagnostics()
public Duration getRequestLatency()
Copyright © 2020 Microsoft Corporation. All rights reserved.