MetricAlertsStatusOperations.ListAsync(String, 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.
Retrieve an alert rule status.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.MetricAlertStatusCollection>> ListAsync (string resourceGroupName, string ruleName, System.Threading.CancellationToken cancellationToken = default);
abstract member ListAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.MetricAlertStatusCollection>>
override this.ListAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.MetricAlertStatusCollection>>
Public Overridable Function ListAsync (resourceGroupName As String, ruleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MetricAlertStatusCollection))
Parameters
- resourceGroupName
- System.String
The name of the resource group.
- ruleName
- System.String
The name of the rule.
- cancellationToken
- System.Threading.CancellationToken
The cancellation token to use.
Returns
- System.Threading.Tasks.Task<Response<MetricAlertStatusCollection>>