ArmMonitorModelFactory.ActivityLogAlertData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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, string tenantScope = default, System.Collections.Generic.IEnumerable<string> scopes = default, bool? isEnabled = default, string description = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.ActivityLogAlertAnyOfOrLeafCondition> conditionAllOf = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.ActivityLogAlertActionGroup> actionsActionGroups = default);
static member ActivityLogAlertData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * string * seq<string> * Nullable<bool> * string * seq<Azure.ResourceManager.Monitor.Models.ActivityLogAlertAnyOfOrLeafCondition> * seq<Azure.ResourceManager.Monitor.Models.ActivityLogAlertActionGroup> -> 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 tenantScope As String = Nothing, Optional scopes As IEnumerable(Of String) = Nothing, Optional isEnabled As Nullable(Of Boolean) = Nothing, Optional description As String = Nothing, Optional conditionAllOf As IEnumerable(Of ActivityLogAlertAnyOfOrLeafCondition) = Nothing, Optional actionsActionGroups As IEnumerable(Of ActivityLogAlertActionGroup) = Nothing) As ActivityLogAlertData
Parameters
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
- name
- String
The name of the resource.
- resourceType
- ResourceType
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
- systemData
- SystemData
Azure Resource Manager metadata containing createdBy and modifiedBy information.
- tags
- IDictionary<String,String>
Resource tags.
- location
- AzureLocation
The geo-location where the resource lives.
- tenantScope
- String
The tenant GUID. Must be provided for tenant-level and management group events rules.
- 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.
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.
- conditionAllOf
- IEnumerable<ActivityLogAlertAnyOfOrLeafCondition>
The list of Activity Log Alert rule conditions.
- actionsActionGroups
- IEnumerable<ActivityLogAlertActionGroup>
The list of the Action Groups.
Returns
A new ActivityLogAlertData instance for mocking.