MockableMonitorSubscriptionResource.GetSubscriptionMonitorMetricDefinitions 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 the metric definitions for the subscription.
- Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Insights/metricDefinitions.
- Operation Id. : MetricDefinitionsOperationGroup_ListAtSubscriptionScope.
- Default Api Version. : 2024-02-01.
public virtual Azure.Pageable<Azure.ResourceManager.Monitor.Models.MonitorSubscriptionScopeMetric> GetSubscriptionMonitorMetricDefinitions(string region, string metricnamespace = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSubscriptionMonitorMetricDefinitions : string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.Models.MonitorSubscriptionScopeMetric>
override this.GetSubscriptionMonitorMetricDefinitions : string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.Models.MonitorSubscriptionScopeMetric>
Public Overridable Function GetSubscriptionMonitorMetricDefinitions (region As String, Optional metricnamespace As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of MonitorSubscriptionScopeMetric)
Parameters
- region
- String
The region where the metrics you want reside.
- metricnamespace
- String
Metric namespace where the metrics you want reside.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of MonitorSubscriptionScopeMetric that may take multiple service requests to iterate over.
Exceptions
region is null.
region is an empty string, and was expected to be non-empty.