Interface CosmosDiagnosticsProcessor
-
public interface CosmosDiagnosticsProcessor
The Cosmos diagnostics processor interface. Implementations can log diagnostics or perform some metrics, but it is important that processing doesn't take much time since it is being called from all Cosmos operations.- Since:
- 3.9.0
- Author:
- radovanradic
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CREATE_CONTAINER_IF_NOT_EXISTS
static java.lang.String
CREATE_DATABASE_IF_NOT_EXISTS
static java.lang.String
CREATE_ITEM
static java.lang.String
DELETE_ITEM
static java.lang.String
EXECUTE_BULK
static java.lang.String
QUERY_ITEMS
static java.lang.String
REPLACE_CONTAINER
static java.lang.String
REPLACE_CONTAINER_THROUGHPUT
static java.lang.String
REPLACE_DATABASE_THROUGHPUT
static java.lang.String
REPLACE_ITEM
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
processDiagnostics(java.lang.String operationName, com.azure.cosmos.CosmosDiagnostics cosmosDiagnostics, java.lang.String activityId, double requestCharge)
Process diagnostics from the Cosmos response.
-
-
-
Field Detail
-
CREATE_DATABASE_IF_NOT_EXISTS
static final java.lang.String CREATE_DATABASE_IF_NOT_EXISTS
- See Also:
- Constant Field Values
-
REPLACE_DATABASE_THROUGHPUT
static final java.lang.String REPLACE_DATABASE_THROUGHPUT
- See Also:
- Constant Field Values
-
CREATE_CONTAINER_IF_NOT_EXISTS
static final java.lang.String CREATE_CONTAINER_IF_NOT_EXISTS
- See Also:
- Constant Field Values
-
REPLACE_CONTAINER_THROUGHPUT
static final java.lang.String REPLACE_CONTAINER_THROUGHPUT
- See Also:
- Constant Field Values
-
REPLACE_CONTAINER
static final java.lang.String REPLACE_CONTAINER
- See Also:
- Constant Field Values
-
QUERY_ITEMS
static final java.lang.String QUERY_ITEMS
- See Also:
- Constant Field Values
-
EXECUTE_BULK
static final java.lang.String EXECUTE_BULK
- See Also:
- Constant Field Values
-
CREATE_ITEM
static final java.lang.String CREATE_ITEM
- See Also:
- Constant Field Values
-
REPLACE_ITEM
static final java.lang.String REPLACE_ITEM
- See Also:
- Constant Field Values
-
DELETE_ITEM
static final java.lang.String DELETE_ITEM
- See Also:
- Constant Field Values
-
-
Method Detail
-
processDiagnostics
void processDiagnostics(java.lang.String operationName, @Nullable com.azure.cosmos.CosmosDiagnostics cosmosDiagnostics, @Nullable java.lang.String activityId, double requestCharge)
Process diagnostics from the Cosmos response.- Parameters:
operationName
- the operation namecosmosDiagnostics
- the Cosmos diagnosticsactivityId
- the activity id (will be null in case of cross partition queries)requestCharge
- the request charge for the operation
-
-