Class CosmosSyncResponse

    • Method Detail

      • maxResourceQuota

        public String maxResourceQuota()
        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.
      • currentResourceQuotaUsage

        public String currentResourceQuotaUsage()
        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.
      • activityId

        public String activityId()
        Gets the Activity ID for the request.
        Returns:
        the activity id.
      • requestCharge

        public double requestCharge()
        Gets the number of index paths (terms) generated by the operation.
        Returns:
        the request charge.
      • statusCode

        public int statusCode()
        Gets the HTTP status code associated with the response.
        Returns:
        the status code.
      • sessionToken

        public String sessionToken()
        Gets the token used for managing client's consistency requirements.
        Returns:
        the session token.
      • responseHeaders

        public Map<String,​String> responseHeaders()
        Gets the headers associated with the response.
        Returns:
        the response headers.
      • cosmosResponseDiagnosticsString

        public CosmosResponseDiagnostics cosmosResponseDiagnosticsString()
        Gets the diagnostics information for the current request to Azure Cosmos DB service.
        Returns:
        diagnostics information for the current request to Azure Cosmos DB service.
      • requestLatency

        public Duration requestLatency()
        Gets the end-to-end request latency for the current request to Azure Cosmos DB service.
        Returns:
        end-to-end request latency for the current request to Azure Cosmos DB service.