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

ResponseDiagnostics Class

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

public class ResponseDiagnostics

Diagnostics class of cosmos and feed response

NOTE: activityId will be null in case of cross partition queries

Constructor Summary

Constructor Description
ResponseDiagnostics(CosmosDiagnostics cosmosDiagnostics, ResponseDiagnostics.CosmosResponseStatistics cosmosResponseStatistics)

Initialization

Method Summary

Modifier and Type Method and Description
CosmosDiagnostics getCosmosDiagnostics()

To get diagnostics of cosmos response

CosmosResponseStatistics getCosmosResponseStatistics()

To get the statistics value of cosmos response

String toString()

Methods inherited from java.lang.Object

Constructor Details

ResponseDiagnostics

public ResponseDiagnostics(CosmosDiagnostics cosmosDiagnostics, ResponseDiagnostics.CosmosResponseStatistics cosmosResponseStatistics)

Initialization

Parameters:

cosmosDiagnostics - cannot be null
cosmosResponseStatistics - cannot be null

Method Details

getCosmosDiagnostics

public CosmosDiagnostics getCosmosDiagnostics()

To get diagnostics of cosmos response

Returns:

CosmosResponseDiagnostics

getCosmosResponseStatistics

public ResponseDiagnostics.CosmosResponseStatistics getCosmosResponseStatistics()

To get the statistics value of cosmos response

Returns:

CosmosResponseStatistics

toString

public String toString()

Overrides:

ResponseDiagnostics.toString()

Applies to