ResponseDiagnostics.CosmosResponseStatistics Class

  • java.lang.Object
    • com.azure.spring.data.cosmos.core.ResponseDiagnostics.CosmosResponseStatistics

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 CosmosResponseStatistics(FeedResponse feedResponse)

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