MetricAlertsOperations.Get(String, String, CancellationToken) Method

Definition

Retrieve an alert rule definition.

public virtual Azure.Response<Azure.ResourceManager.Insights.Models.MetricAlertResource> Get (string resourceGroupName, string ruleName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Insights.Models.MetricAlertResource>
override this.Get : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Insights.Models.MetricAlertResource>
Public Overridable Function Get (resourceGroupName As String, ruleName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of MetricAlertResource)

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

Response<MetricAlertResource>

Applies to