PartitionKeyRangeIdRegionOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:partition_key_range_id_region> attribute.
- Inheritance
-
builtins.objectPartitionKeyRangeIdRegionOperations
Constructor
PartitionKeyRangeIdRegionOperations(*args, **kwargs)
Methods
list_metrics |
Retrieves the metrics determined by the given filter for the given partition key range id and region. |
list_metrics
Retrieves the metrics determined by the given filter for the given partition key range id and region.
list_metrics(resource_group_name: str, account_name: str, region: str, database_rid: str, collection_rid: str, partition_key_range_id: str, filter: str, **kwargs: Any) -> AsyncIterable[PartitionMetric]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
account_name
Required
|
Cosmos DB database account name. Required. |
region
Required
|
Cosmos DB region, with spaces between words and each word capitalized. Required. |
database_rid
Required
|
Cosmos DB database rid. Required. |
collection_rid
Required
|
Cosmos DB collection rid. Required. |
partition_key_range_id
Required
|
Partition Key Range Id for which to get data. Required. |
filter
Required
|
An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are name.value (name of the metric, can have an or of multiple names), startTime, endTime, and timeGrain. The supported operator is eq. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either PartitionMetric or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.cosmosdb.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\cosmosdb\\models\\__init__.py'>
Azure SDK for Python