你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ActivityLogAlertsOperationsExtensions.CreateOrUpdate 方法

定义

创建新的活动日志警报规则或更新现有规则。

public static Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertResource CreateOrUpdate (this Microsoft.Azure.Management.Monitor.IActivityLogAlertsOperations operations, string resourceGroupName, string activityLogAlertName, Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertResource activityLogAlertRule);
static member CreateOrUpdate : Microsoft.Azure.Management.Monitor.IActivityLogAlertsOperations * string * string * Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertResource -> Microsoft.Azure.Management.Monitor.Models.ActivityLogAlertResource
<Extension()>
Public Function CreateOrUpdate (operations As IActivityLogAlertsOperations, resourceGroupName As String, activityLogAlertName As String, activityLogAlertRule As ActivityLogAlertResource) As ActivityLogAlertResource

参数

operations
IActivityLogAlertsOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。 此名称不区分大小写。

activityLogAlertName
String

活动日志警报规则的名称。

activityLogAlertRule
ActivityLogAlertResource

要创建或用于更新的活动日志警报规则。

返回

适用于