AlertRulesOperations.CreateOrUpdateAsync(String, String, AlertRuleResource, 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.
Creates or updates a classic metric alert rule.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.AlertRuleResource>> CreateOrUpdateAsync (string resourceGroupName, string ruleName, Azure.ResourceManager.Insights.Models.AlertRuleResource parameters, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : string * string * Azure.ResourceManager.Insights.Models.AlertRuleResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.AlertRuleResource>>
override this.CreateOrUpdateAsync : string * string * Azure.ResourceManager.Insights.Models.AlertRuleResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.AlertRuleResource>>
Public Overridable Function CreateOrUpdateAsync (resourceGroupName As String, ruleName As String, parameters As AlertRuleResource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AlertRuleResource))
Parameters
- resourceGroupName
- System.String
The name of the resource group.
- ruleName
- System.String
The name of the rule.
- parameters
- AlertRuleResource
The parameters of the rule to create or update.
- cancellationToken
- System.Threading.CancellationToken
The cancellation token to use.
Returns
- System.Threading.Tasks.Task<Response<AlertRuleResource>>