azure.mgmt.commerce.operations module¶
-
class
azure.mgmt.commerce.operations.
RateCardOperations
(*args, **kwargs)[source]¶ Bases:
object
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
UsageManagementClient
’srate_card
attribute.-
get
(filter: str, **kwargs: Any) → azure.mgmt.commerce.models._models_py3.ResourceRateCardInfo[source]¶ Enables you to query for the resource/meter metadata and related prices used in a given subscription by Offer ID, Currency, Locale and Region. The metadata associated with the billing meters, including but not limited to service names, types, resources, units of measure, and regions, is subject to change at any time and without notice. If you intend to use this billing data in an automated fashion, please use the billing meter GUID to uniquely identify each billable item. If the billing meter GUID is scheduled to change due to a new billing model, you will be notified in advance of the change.
- Parameters
filter (str) – The filter to apply on the operation. It ONLY supports the ‘eq’ and ‘and’ logical operators at this time. All the 4 query parameters ‘OfferDurableId’, ‘Currency’, ‘Locale’, ‘Region’ are required to be a part of the $filter. Required.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
ResourceRateCardInfo or the result of cls(response)
- Return type
- Raises
-
models
= <module 'azure.mgmt.commerce.models' from '/mnt/vss/_work/1/s/sdk/commerce/azure-mgmt-commerce/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/commerce/models/__init__.py'>¶
-
-
class
azure.mgmt.commerce.operations.
UsageAggregatesOperations
(*args, **kwargs)[source]¶ Bases:
object
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
UsageManagementClient
’susage_aggregates
attribute.-
list
(reported_start_time: datetime.datetime, reported_end_time: datetime.datetime, show_details: Optional[bool] = None, aggregation_granularity: Union[str, azure.mgmt.commerce.models._usage_management_client_enums.AggregationGranularity] = 'Daily', continuation_token_parameter: Optional[str] = None, **kwargs: Any) → Iterable[azure.mgmt.commerce.models._models_py3.UsageAggregation][source]¶ Query aggregated Azure subscription consumption data for a date range.
- Parameters
reported_start_time (datetime) – The start of the time range to retrieve data for. Required.
reported_end_time (datetime) – The end of the time range to retrieve data for. Required.
show_details (bool) –
True
returns usage data in instance-level detail,false
causes server-side aggregation with fewer details. For example, if you have 3 website instances, by default you will get 3 line items for website consumption. If you specify showDetails = false, the data will be aggregated as a single line item for website consumption within the time period (for the given subscriptionId, meterId, usageStartTime and usageEndTime). Default value is None.aggregation_granularity (str or AggregationGranularity) –
Daily
(default) returns the data in daily granularity,Hourly
returns the data in hourly granularity. Known values are: “Daily” and “Hourly”. Default value is “Daily”.continuation_token_parameter (str) – Used when a continuation token string is provided in the response body of the previous call, enabling paging through a large result set. If not present, the data is retrieved from the beginning of the day/hour (based on the granularity) passed in. Default value is None.
- Keyword Arguments
cls (callable) – A custom type or function that will be passed the direct response
- Returns
An iterator like instance of either UsageAggregation or the result of cls(response)
- Return type
- Raises
-
models
= <module 'azure.mgmt.commerce.models' from '/mnt/vss/_work/1/s/sdk/commerce/azure-mgmt-commerce/.tox/sphinx/lib/python3.9/site-packages/azure/mgmt/commerce/models/__init__.py'>¶
-