你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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 <T>CosmosResponseStatistics(FeedResponse<T> 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