Share via


UsageMetricCollection Class

Definition

A class representing a collection of UsageMetricResource and their operations. Each UsageMetricResource in the collection will belong to the same instance of FirmwareAnalysisWorkspaceResource. To get an UsageMetricCollection instance call the GetUsageMetrics method from an instance of FirmwareAnalysisWorkspaceResource.

public class UsageMetricCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.IotFirmwareDefense.UsageMetricResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.IotFirmwareDefense.UsageMetricResource>
type UsageMetricCollection = class
    inherit ArmCollection
    interface seq<UsageMetricResource>
    interface IEnumerable
    interface IAsyncEnumerable<UsageMetricResource>
Public Class UsageMetricCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of UsageMetricResource), IEnumerable(Of UsageMetricResource)
Inheritance
UsageMetricCollection
Implements

Constructors

UsageMetricCollection()

Initializes a new instance of the UsageMetricCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/usageMetrics/{name}
  • Operation Id: UsageMetrics_Get
  • Default Api Version: 2025-04-01-preview
  • Resource: UsageMetricResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/usageMetrics/{name}
  • Operation Id: UsageMetrics_Get
  • Default Api Version: 2025-04-01-preview
  • Resource: UsageMetricResource
Get(String, CancellationToken)

Gets monthly usage information for a workspace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/usageMetrics/{name}
  • Operation Id: UsageMetrics_Get
  • Default Api Version: 2025-04-01-preview
  • Resource: UsageMetricResource
GetAll(CancellationToken)

Lists monthly usage information for a workspace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/usageMetrics
  • Operation Id: UsageMetrics_ListByWorkspace
  • Default Api Version: 2025-04-01-preview
  • Resource: UsageMetricResource
GetAllAsync(CancellationToken)

Lists monthly usage information for a workspace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/usageMetrics
  • Operation Id: UsageMetrics_ListByWorkspace
  • Default Api Version: 2025-04-01-preview
  • Resource: UsageMetricResource
GetAsync(String, CancellationToken)

Gets monthly usage information for a workspace.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/usageMetrics/{name}
  • Operation Id: UsageMetrics_Get
  • Default Api Version: 2025-04-01-preview
  • Resource: UsageMetricResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/usageMetrics/{name}
  • Operation Id: UsageMetrics_Get
  • Default Api Version: 2025-04-01-preview
  • Resource: UsageMetricResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/usageMetrics/{name}
  • Operation Id: UsageMetrics_Get
  • Default Api Version: 2025-04-01-preview
  • Resource: UsageMetricResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<UsageMetricResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<UsageMetricResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to