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
Initialization
Parameters:
feedResponse
- response from feed
Method Details
getActivityId
public String getActivityId()
To get the activity id
Returns:
String
getRequestCharge
public double getRequestCharge()
To get the charge value of request
Returns:
double
toString
public String toString()
Overrides:
ResponseDiagnostics.CosmosResponseStatistics.toString()Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java