OperationalInsightsWorkspaceResource.GetUsages(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.Pageable<Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsUsageMetric> GetUsages (System.Threading.CancellationToken cancellationToken = default);
abstract member GetUsages : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsUsageMetric>
override this.GetUsages : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsUsageMetric>
Public Overridable Function GetUsages (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of OperationalInsightsUsageMetric)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to