Share via


AllowlistCustomAlertRule Class

Definition

A custom alert rule that checks if a value (depends on the custom alert type) is allowed. Please note AllowlistCustomAlertRule is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ConnectionFromIPNotAllowed, ConnectionToIPNotAllowed, LocalUserNotAllowed and ProcessNotAllowed.

public class AllowlistCustomAlertRule : Azure.ResourceManager.SecurityCenter.Models.ListCustomAlertRule
public class AllowlistCustomAlertRule : Azure.ResourceManager.SecurityCenter.Models.ListCustomAlertRule, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.SecurityCenter.Models.AllowlistCustomAlertRule>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.SecurityCenter.Models.AllowlistCustomAlertRule>
type AllowlistCustomAlertRule = class
    inherit ListCustomAlertRule
type AllowlistCustomAlertRule = class
    inherit ListCustomAlertRule
    interface IJsonModel<AllowlistCustomAlertRule>
    interface IPersistableModel<AllowlistCustomAlertRule>
Public Class AllowlistCustomAlertRule
Inherits ListCustomAlertRule
Public Class AllowlistCustomAlertRule
Inherits ListCustomAlertRule
Implements IJsonModel(Of AllowlistCustomAlertRule), IPersistableModel(Of AllowlistCustomAlertRule)
Inheritance
AllowlistCustomAlertRule
Derived
Implements

Constructors

AllowlistCustomAlertRule(Boolean, IEnumerable<String>)

Initializes a new instance of AllowlistCustomAlertRule.

Properties

AllowlistValues

The values to allow. The format of the values depends on the rule type.

Description

The description of the custom alert.

(Inherited from CustomAlertRule)
DisplayName

The display name of the custom alert.

(Inherited from CustomAlertRule)
IsEnabled

Status of the custom alert.

(Inherited from CustomAlertRule)
ValueType

The value type of the items in the list.

(Inherited from ListCustomAlertRule)

Explicit Interface Implementations

IJsonModel<AllowlistCustomAlertRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<AllowlistCustomAlertRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<CustomAlertRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from CustomAlertRule)
IJsonModel<CustomAlertRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from CustomAlertRule)
IJsonModel<ListCustomAlertRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from ListCustomAlertRule)
IJsonModel<ListCustomAlertRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from ListCustomAlertRule)
IPersistableModel<AllowlistCustomAlertRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AllowlistCustomAlertRule>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<AllowlistCustomAlertRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<CustomAlertRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from CustomAlertRule)
IPersistableModel<CustomAlertRule>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from CustomAlertRule)
IPersistableModel<CustomAlertRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from CustomAlertRule)
IPersistableModel<ListCustomAlertRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from ListCustomAlertRule)
IPersistableModel<ListCustomAlertRule>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from ListCustomAlertRule)
IPersistableModel<ListCustomAlertRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from ListCustomAlertRule)

Applies to