Udostępnij za pośrednictwem


AlertProcessingRuleProperties Class

Definition

Alert processing rule properties defining scopes, conditions and scheduling logic for alert processing rule.

public class AlertProcessingRuleProperties : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.AlertsManagement.Models.AlertProcessingRuleProperties>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.AlertsManagement.Models.AlertProcessingRuleProperties>
public class AlertProcessingRuleProperties
type AlertProcessingRuleProperties = class
    interface IJsonModel<AlertProcessingRuleProperties>
    interface IPersistableModel<AlertProcessingRuleProperties>
type AlertProcessingRuleProperties = class
Public Class AlertProcessingRuleProperties
Implements IJsonModel(Of AlertProcessingRuleProperties), IPersistableModel(Of AlertProcessingRuleProperties)
Public Class AlertProcessingRuleProperties
Inheritance
AlertProcessingRuleProperties
Implements

Constructors

AlertProcessingRuleProperties(IEnumerable<String>, IEnumerable<AlertProcessingRuleAction>)

Initializes a new instance of AlertProcessingRuleProperties.

Properties

Actions

Actions to be applied. Please note AlertProcessingRuleAction 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 AlertProcessingRuleAddGroupsAction and AlertProcessingRuleRemoveAllGroupsAction.

Conditions

Conditions on which alerts will be filtered.

Description

Description of alert processing rule.

IsEnabled

Indicates if the given alert processing rule is enabled or disabled.

Schedule

Scheduling for alert processing rule.

Scopes

Scopes on which alert processing rule will apply.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<AlertProcessingRuleProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<AlertProcessingRuleProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AlertProcessingRuleProperties>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AlertProcessingRuleProperties>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AlertProcessingRuleProperties>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to