Share via


ActivityLogAlertResource Class

Definition

An Activity Log Alert rule resource.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.ActivityLogAlertResourceTypeConverter))]
public class ActivityLogAlertResource : Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource, Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.ActivityLogAlertResourceTypeConverter))>]
type ActivityLogAlertResource = class
    interface IActivityLogAlertResource
    interface IJsonSerializable
    interface IAzureResource
    interface IValidates
Public Class ActivityLogAlertResource
Implements IActivityLogAlertResource, IValidates
Inheritance
ActivityLogAlertResource
Attributes
Implements

Constructors

ActivityLogAlertResource()

Creates an new ActivityLogAlertResource instance.

Properties

ActionGroup

The list of the Action Groups.

ConditionAllOf

The list of Activity Log Alert rule conditions.

Description

A description of this Activity Log Alert rule.

Enabled

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.

Id

The resource Id.

Location

The location of the resource. Since Azure Activity Log Alerts is a global service, the location of the rules should always be 'global'.

Name

The name of the resource.

ResourceGroupName

Gets the resource group name

Scope

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.

Tag

The tags of the resource.

Type

The type of the resource.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ActivityLogAlertResource.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ActivityLogAlertResource.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.ActivityLogAlert.Models.Api20201001.IActivityLogAlertResource.

FromJsonString(String)

Creates a new instance of ActivityLogAlertResource, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of ActivityLogAlertResource into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to