Share via


AlertRulePatch Class

Definition

The alert rule object for patch operations.

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

Constructors

AlertRulePatch()

Initializes a new instance of AlertRulePatch.

Properties

Action

action that is performed when the alert rule becomes active, and when an alert condition is resolved. Please note AlertRuleAction 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 RuleEmailAction and RuleWebhookAction.

Actions

the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. Please note AlertRuleAction 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 RuleEmailAction and RuleWebhookAction.

Condition

the condition that results in the alert rule being activated. Please note AlertRuleCondition 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 LocationThresholdRuleCondition, ManagementEventRuleCondition and ThresholdRuleCondition.

Description

the description of the alert rule that will be included in the alert email.

IsEnabled

the flag that indicates whether the alert rule is enabled.

LastUpdatedOn

Last time the rule was updated in ISO8601 format.

Name

the name of the alert rule.

ProvisioningState

the provisioning state.

Tags

Resource tags.

Explicit Interface Implementations

IJsonModel<AlertRulePatch>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<AlertRulePatch>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AlertRulePatch>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AlertRulePatch>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AlertRulePatch>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to