ResponseDiagnostics.CosmosResponseStatistics Class
- java.
lang. Object - com.
azure. spring. data. cosmos. core. ResponseDiagnostics. CosmosResponseStatistics
- com.
public static class ResponseDiagnostics.CosmosResponseStatistics
Generates statistics from cosmos response
NOTE: activityId will be null in case of cross partition queries
Constructor Summary
| Constructor | Description |
|---|---|
| CosmosResponseStatistics(FeedResponse<T> feedResponse) |
Initialization |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
getActivityId()
To get the activity id |
| double |
getRequestCharge()
To get the charge value of request |
| String | toString() |
Methods inherited from java.lang.Object
Constructor Details
CosmosResponseStatistics
public <T>CosmosResponseStatistics(FeedResponse<T> feedResponse)
Initialization
Parameters:
Method Details
getActivityId
public String getActivityId()
To get the activity id
Returns:
getRequestCharge
public double getRequestCharge()
To get the charge value of request
Returns:
toString
public String toString()
Overrides:
ResponseDiagnostics.CosmosResponseStatistics.toString()