MetricConfigurationCollection.GetAllAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Lists metrics in a metric namespace. Resource properties may be omitted in collection responses.
- Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts/{azureMonitorWorkspaceName}/metricsContainers/{metricsContainerName}/namespaces/{encodedMetricNamespace}/metrics.
- Operation Id. : MetricConfigurations_ListByMetricNamespace.
- Default Api Version. : 2026-09-03-preview.
public virtual Azure.AsyncPageable<Azure.ResourceManager.Monitor.Workspaces.MetricConfigurationResource> GetAllAsync(string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Monitor.Workspaces.MetricConfigurationResource>
override this.GetAllAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Monitor.Workspaces.MetricConfigurationResource>
Public Overridable Function GetAllAsync (Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of MetricConfigurationResource)
Parameters
- filter
- String
An OData filter for source metric resource IDs.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of MetricConfigurationResource that may take multiple service requests to iterate over.