EventsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:events> attribute.
Constructor
EventsOperations(*args, **kwargs)
Methods
| list_by_billing_account |
Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or a billing profile for a given start and end date. |
| list_by_billing_profile |
Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or a billing profile for a given start and end date. |
list_by_billing_account
Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or a billing profile for a given start and end date.
list_by_billing_account(billing_account_id: str, *, filter: str | None = None, **kwargs: Any) -> ItemPaged[EventSummary]
Parameters
| Name | Description |
|---|---|
|
billing_account_id
Required
|
BillingAccount ID. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
filter
|
May be used to filter the events by lotId, lotSource etc. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:). Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
An iterator like instance of EventSummary |
Exceptions
| Type | Description |
|---|---|
list_by_billing_profile
Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or a billing profile for a given start and end date.
list_by_billing_profile(billing_account_id: str, billing_profile_id: str, *, start_date: str, end_date: str, **kwargs: Any) -> ItemPaged[EventSummary]
Parameters
| Name | Description |
|---|---|
|
billing_account_id
Required
|
BillingAccount ID. Required. |
|
billing_profile_id
Required
|
Azure Billing Profile ID. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
start_date
|
Start date. Required. |
|
end_date
|
End date. Required. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of EventSummary |
Exceptions
| Type | Description |
|---|---|