共用方式為


BillingAccountConsumptionResource.GetEvents(String, CancellationToken) Method

Definition

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.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/events
  • Operation Id: Events_ListByBillingAccount
public virtual Azure.Pageable<Azure.ResourceManager.Consumption.Models.ConsumptionEventSummary> GetEvents (string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetEvents : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Consumption.Models.ConsumptionEventSummary>
override this.GetEvents : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Consumption.Models.ConsumptionEventSummary>
Public Overridable Function GetEvents (Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ConsumptionEventSummary)

Parameters

filter
String

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 (:).

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ConsumptionEventSummary that may take multiple service requests to iterate over.

Applies to