次の方法で共有


ActivityLogAlertsOperationsExtensions.UpdateAsync メソッド

定義

既存のアラート ルールに 'tags' フィールドと 'enabled' フィールドを更新します。 このメソッドは、アラート ルール タグを更新したり、アラート ルールを有効または無効にしたりするために使用されます。 他のフィールドを更新するには、CreateOrUpdate 操作を使用します。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertResource> UpdateAsync (this Microsoft.Azure.Management.Monitor.IActivityLogAlertsOperations operations, string resourceGroupName, string activityLogAlertName, Microsoft.Azure.Management.Monitor.Models.AlertRulePatchObject activityLogAlertRulePatch, System.Threading.CancellationToken cancellationToken = default);
static member UpdateAsync : Microsoft.Azure.Management.Monitor.IActivityLogAlertsOperations * string * string * Microsoft.Azure.Management.Monitor.Models.AlertRulePatchObject * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertResource>
<Extension()>
Public Function UpdateAsync (operations As IActivityLogAlertsOperations, resourceGroupName As String, activityLogAlertName As String, activityLogAlertRulePatch As AlertRulePatchObject, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ActivityLogAlertResource)

パラメーター

operations
IActivityLogAlertsOperations

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

resourceGroupName
String

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

activityLogAlertName
String

アクティビティ ログ アラート ルールの名前。

activityLogAlertRulePatch
AlertRulePatchObject

操作に指定されたパラメーター。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

適用対象