StoredProcedureResponse Class

  • java.lang.Object
    • com.microsoft.azure.cosmosdb.StoredProcedureResponse

public class StoredProcedureResponse

Represents the response returned from a stored procedure in the Azure Cosmos DB database service. Wraps the response body and headers.

Method Summary

Modifier and Type Method and Description
String getActivityId()

Gets the Activity ID of the request.

ClientSideRequestStatistics getClientSideRequestStatistics()

Gets the client side request statics for execution of stored procedure.

String getCurrentResourceQuotaUsage()

Gets the current size of this entity (in megabytes (MB) for server resources and in count for master resources)

String getMaxResourceQuota()

Gets the maximum size limit for this entity (in megabytes (MB) for server resources and in count for master resources).

double getRequestCharge()

Gets the number of normalized requests charged.

Attachment getResponseAsAttachment()

Gets the response of a stored procedure, serialized into an attachment.

Document getResponseAsDocument()

Gets the response of a stored procedure, serialized into a document.

String getResponseAsString()

Gets the response of a stored procedure as a string.

Map<String, String> getResponseHeaders()

Gets the headers associated with the response.

String getScriptLog()

Gets the output from stored procedure console.log() statements.

String getSessionToken()

Gets the token for use with session consistency requests.

int getStatusCode()

Gets the request completion status code.

Method Details

getActivityId

public String getActivityId()

Gets the Activity ID of the request.

Returns:

the activity id.

getClientSideRequestStatistics

public ClientSideRequestStatistics getClientSideRequestStatistics()

Gets the client side request statics for execution of stored procedure.

Returns:

client side request statistics for execution of stored procedure.

getCurrentResourceQuotaUsage

public String getCurrentResourceQuotaUsage()

Gets the current size of this entity (in megabytes (MB) for server resources and in count for master resources)

Returns:

the current resource quota usage.

getMaxResourceQuota

public String getMaxResourceQuota()

Gets the maximum size limit for this entity (in megabytes (MB) for server resources and in count for master resources).

Returns:

the max resource quota.

getRequestCharge

public double getRequestCharge()

Gets the number of normalized requests charged.

Returns:

the request charge.

getResponseAsAttachment

public Attachment getResponseAsAttachment()

Gets the response of a stored procedure, serialized into an attachment.

Returns:

the response as an attachment.

getResponseAsDocument

public Document getResponseAsDocument()

Gets the response of a stored procedure, serialized into a document.

Returns:

the response as a document.

getResponseAsString

public String getResponseAsString()

Gets the response of a stored procedure as a string.

Returns:

the response as a string.

getResponseHeaders

public Map getResponseHeaders()

Gets the headers associated with the response.

Returns:

the response headers.

getScriptLog

public String getScriptLog()

Gets the output from stored procedure console.log() statements.

Returns:

the output string from the stored procedure console.log() statements.

getSessionToken

public String getSessionToken()

Gets the token for use with session consistency requests.

Returns:

the session token.

getStatusCode

public int getStatusCode()

Gets the request completion status code.

Returns:

the status code.

Applies to