CosmosMetricTagName Class
- java.
lang. Object - com.
azure. cosmos. models. CosmosMetricTagName
- com.
public final class CosmosMetricTagName
The tag names that can be used for Cosmos client-side meters. Not all tag names are applicable for all meters, but this identifier can be used to tune which tags to use for individual meters or also define the default tags that should be used when no meter-specific suppression exists.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Cosmos |
ADDRESS_RESOLUTION_COLLECTION_MAP_REFRESH
An indicator whether an address resolution refresh requested a collection routing map cache refresh Applicable to address resolutions |
|
static final
Cosmos |
ADDRESS_RESOLUTION_FORCED_REFRESH
An indicator whether an address resolution refresh requested a cache refresh Applicable to address resolutions |
|
static final
Cosmos |
ALL
All possible tags |
|
static final
Cosmos |
CLIENT_CORRELATION_ID
An identifier for the instance of the Cosmos client Applicable to all meters |
|
static final
Cosmos |
CONSISTENCY_LEVEL
Effective Consistency model Applicable to operations and requests |
|
static final
Cosmos |
CONTAINER
Container identifier applicable to operations and requests |
|
static final
Cosmos |
DEFAULT
Default tags |
|
static final
Cosmos |
MINIMUM
Minimum tags that are required and cannot be disabled |
|
static final
Cosmos |
OPERATION
Operation type Applicable to operations |
|
static final
Cosmos |
OPERATION_STATUS_CODE
Operation status code. |
|
static final
Cosmos |
OPERATION_SUB_STATUS_CODE
Operation sub-status code. |
|
static final
Cosmos |
PARTITION_ID
The Partition |
|
static final
Cosmos |
PARTITION_KEY_RANGE_ID
A numeric identifier for a physical partition Applicable to operations and requests |
|
static final
Cosmos |
REGION_NAME
The region names of the regions handling the operation/request Applicable to requests and operations |
|
static final
Cosmos |
REPLICA_ID
The Replica |
|
static final
Cosmos |
REQUEST_OPERATION_TYPE
Request operation type Applicable to requests |
|
static final
Cosmos |
REQUEST_STATUS_CODE
Request status code Applicable to requests |
|
static final
Cosmos |
SERVICE_ADDRESS
The service endpoint (hostname + port, partition |
|
static final
Cosmos |
SERVICE_ENDPOINT
The service endpoint (hostname + port) Applicable to requests, direct channel, direct endpoint and direct requests |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| boolean | equals(Object obj) |
|
static
Cosmos |
fromString(String name)
Gets the corresponding metric category state from its string representation. |
| int | hashCode() |
| String | toString() |
Methods inherited from java.lang.Object
Field Details
ADDRESS_RESOLUTION_COLLECTION_MAP_REFRESH
public static final CosmosMetricTagName ADDRESS_RESOLUTION_COLLECTION_MAP_REFRESH
An indicator whether an address resolution refresh requested a collection routing map cache refresh Applicable to address resolutions
ADDRESS_RESOLUTION_FORCED_REFRESH
public static final CosmosMetricTagName ADDRESS_RESOLUTION_FORCED_REFRESH
An indicator whether an address resolution refresh requested a cache refresh Applicable to address resolutions
ALL
public static final CosmosMetricTagName ALL
All possible tags
CLIENT_CORRELATION_ID
public static final CosmosMetricTagName CLIENT_CORRELATION_ID
An identifier for the instance of the Cosmos client Applicable to all meters
CONSISTENCY_LEVEL
public static final CosmosMetricTagName CONSISTENCY_LEVEL
Effective Consistency model Applicable to operations and requests
CONTAINER
public static final CosmosMetricTagName CONTAINER
Container identifier applicable to operations and requests
DEFAULT
public static final CosmosMetricTagName DEFAULT
Default tags
MINIMUM
public static final CosmosMetricTagName MINIMUM
Minimum tags that are required and cannot be disabled
OPERATION
public static final CosmosMetricTagName OPERATION
Operation type Applicable to operations
OPERATION_STATUS_CODE
public static final CosmosMetricTagName OPERATION_STATUS_CODE
Operation status code. Applicable to operations
OPERATION_SUB_STATUS_CODE
public static final CosmosMetricTagName OPERATION_SUB_STATUS_CODE
Operation sub-status code. Applicable to operations
PARTITION_ID
public static final CosmosMetricTagName PARTITION_ID
The PartitionId (Guid) Applicable to requests
PARTITION_KEY_RANGE_ID
public static final CosmosMetricTagName PARTITION_KEY_RANGE_ID
A numeric identifier for a physical partition Applicable to operations and requests
REGION_NAME
public static final CosmosMetricTagName REGION_NAME
The region names of the regions handling the operation/request Applicable to requests and operations
REPLICA_ID
public static final CosmosMetricTagName REPLICA_ID
The ReplicaId (int identifier plus suffix "s" (secondary - read-only - replica) or "p" (primary- write - replica) Applicable to requests
REQUEST_OPERATION_TYPE
public static final CosmosMetricTagName REQUEST_OPERATION_TYPE
Request operation type Applicable to requests
REQUEST_STATUS_CODE
public static final CosmosMetricTagName REQUEST_STATUS_CODE
Request status code Applicable to requests
SERVICE_ADDRESS
public static final CosmosMetricTagName SERVICE_ADDRESS
The service endpoint (hostname + port, partitionId, replicaId) Applicable to requests
SERVICE_ENDPOINT
public static final CosmosMetricTagName SERVICE_ENDPOINT
The service endpoint (hostname + port) Applicable to requests, direct channel, direct endpoint and direct requests
Method Details
equals
public boolean equals(Object obj)
Overrides:
CosmosMetricTagName.equals(Object obj)Parameters:
fromString
public static CosmosMetricTagName fromString(String name)
Gets the corresponding metric category state from its string representation.
Parameters:
Returns:
hashCode
public int hashCode()
Overrides:
CosmosMetricTagName.hashCode()toString
public String toString()
Overrides:
CosmosMetricTagName.toString()