Package com.azure.cosmos.models
Class CosmosStoredProcedureResponse
java.lang.Object
com.azure.cosmos.models.CosmosResponse<CosmosStoredProcedureProperties>
com.azure.cosmos.models.CosmosStoredProcedureResponse
The type Cosmos stored procedure response.
-
Method Summary
Modifier and TypeMethodDescriptionGets the Activity ID for the request.Gets the stored procedure propertiesdouble
Gets the number of normalized requests charged.Gets the response of the stored procedure as a string.Gets the output from stored procedure console.log() statements.Gets the token used for managing client's consistency requirements.int
Gets the HTTP status code associated with the response.Methods inherited from class com.azure.cosmos.models.CosmosResponse
getCurrentResourceQuotaUsage, getDiagnostics, getDuration, getMaxResourceQuota, getResponseHeaders
-
Method Details
-
getProperties
Gets the stored procedure properties- Overrides:
getProperties
in classCosmosResponse<CosmosStoredProcedureProperties>
- Returns:
- the stored procedure properties or null
-
getActivityId
Gets the Activity ID for the request.- Overrides:
getActivityId
in classCosmosResponse<CosmosStoredProcedureProperties>
- Returns:
- the activity id.
-
getSessionToken
Gets the token used for managing client's consistency requirements.- Overrides:
getSessionToken
in classCosmosResponse<CosmosStoredProcedureProperties>
- Returns:
- the session token.
-
getStatusCode
public int getStatusCode()Gets the HTTP status code associated with the response.- Overrides:
getStatusCode
in classCosmosResponse<CosmosStoredProcedureProperties>
- Returns:
- the status code.
-
getRequestCharge
public double getRequestCharge()Gets the number of normalized requests charged.- Overrides:
getRequestCharge
in classCosmosResponse<CosmosStoredProcedureProperties>
- Returns:
- the request charge.
-
getResponseAsString
Gets the response of the stored procedure as a string.- Returns:
- the response as a string.
-
getScriptLog
Gets the output from stored procedure console.log() statements.- Returns:
- the output string from the stored procedure console.log() statements.
-