Compartilhar via


ArmMonitorModelFactory.ActivityLogAlertData Method

Definition

Initializes a new instance of ActivityLogAlertData.

public static Azure.ResourceManager.Monitor.ActivityLogAlertData ActivityLogAlertData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, System.Collections.Generic.IEnumerable<string> scopes = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.ActivityLogAlertAnyOfOrLeafCondition> conditionAllOf = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.ActivityLogAlertActionGroup> actionsActionGroups = default, bool? isEnabled = default, string description = default);
static member ActivityLogAlertData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * seq<string> * seq<Azure.ResourceManager.Monitor.Models.ActivityLogAlertAnyOfOrLeafCondition> * seq<Azure.ResourceManager.Monitor.Models.ActivityLogAlertActionGroup> * Nullable<bool> * string -> Azure.ResourceManager.Monitor.ActivityLogAlertData
Public Shared Function ActivityLogAlertData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional scopes As IEnumerable(Of String) = Nothing, Optional conditionAllOf As IEnumerable(Of ActivityLogAlertAnyOfOrLeafCondition) = Nothing, Optional actionsActionGroups As IEnumerable(Of ActivityLogAlertActionGroup) = Nothing, Optional isEnabled As Nullable(Of Boolean) = Nothing, Optional description As String = Nothing) As ActivityLogAlertData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

tags
IDictionary<String,String>

The tags.

location
AzureLocation

The location.

scopes
IEnumerable<String>

A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.

conditionAllOf
IEnumerable<ActivityLogAlertAnyOfOrLeafCondition>

The condition that will cause this alert to activate.

actionsActionGroups
IEnumerable<ActivityLogAlertActionGroup>

The actions that will activate when the condition is met.

isEnabled
Nullable<Boolean>

Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.

description
String

A description of this Activity Log Alert rule.

Returns

A new ActivityLogAlertData instance for mocking.

Applies to