次の方法で共有


ActivityLogAlertsOperationsExtensions.CreateOrUpdateAsync メソッド

定義

新しいアクティビティ ログ アラート ルールを作成するか、既存のルールを更新します。

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

パラメーター

operations
IActivityLogAlertsOperations

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

resourceGroupName
String

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

activityLogAlertName
String

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

activityLogAlertRule
ActivityLogAlertResource

更新プログラムに対して作成または使用するアクティビティ ログ アラート ルール。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

適用対象