OperationalInsightsWorkspaceResource.GetUsagesAsync(CancellationToken) Method

Definition

Gets a list of usage metrics for a workspace.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/usages
  • Operation Id: Usages_List
  • Default Api Version: 2020-08-01
public virtual Azure.AsyncPageable<Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsUsageMetric> GetUsagesAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetUsagesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsUsageMetric>
override this.GetUsagesAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsUsageMetric>
Public Overridable Function GetUsagesAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of OperationalInsightsUsageMetric)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of OperationalInsightsUsageMetric that may take multiple service requests to iterate over.

Applies to