次の方法で共有


AlertRulesOperationsExtensions.CreateOrUpdateAsync メソッド

定義

クラシック メトリック アラート ルールを作成または更新します。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Monitor.Models.AlertRuleResource> CreateOrUpdateAsync (this Microsoft.Azure.Management.Monitor.IAlertRulesOperations operations, string resourceGroupName, string ruleName, Microsoft.Azure.Management.Monitor.Models.AlertRuleResource parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Monitor.IAlertRulesOperations * string * string * Microsoft.Azure.Management.Monitor.Models.AlertRuleResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Monitor.Models.AlertRuleResource>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IAlertRulesOperations, resourceGroupName As String, ruleName As String, parameters As AlertRuleResource, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AlertRuleResource)

パラメーター

operations
IAlertRulesOperations

この拡張メソッドの操作グループ。

resourceGroupName
String

リソース グループの名前。 名前の大文字と小文字は区別されます。

ruleName
String

ルールの名前です。

parameters
AlertRuleResource

作成または更新するルールのパラメーター。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

適用対象