MetricsQueryClient.GetMetricNamespacesAsync(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.
Gets metric namespaces for a particular resource.
public virtual Azure.AsyncPageable<Azure.Monitor.Query.Models.MetricNamespace> GetMetricNamespacesAsync(string resourceId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMetricNamespacesAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Monitor.Query.Models.MetricNamespace>
override this.GetMetricNamespacesAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Monitor.Query.Models.MetricNamespace>
Public Overridable Function GetMetricNamespacesAsync (resourceId As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of MetricNamespace)
Parameters
- resourceId
- String
The resource name.
- cancellationToken
- CancellationToken
The CancellationToken to use.
Returns
A pageable collection of metric namespaces.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET