Share via


RuleWebhookAction Class

Definition

Specifies the action to post to service when the rule condition is evaluated. The discriminator is always RuleWebhookAction in this case.

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

Constructors

RuleWebhookAction()

Initializes a new instance of RuleWebhookAction.

Properties

Properties

the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.

ServiceUri

the service uri to Post the notification when the alert activates or resolves.

Explicit Interface Implementations

IJsonModel<AlertRuleAction>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

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

Writes the model to the provided Utf8JsonWriter.

(Inherited from AlertRuleAction)
IJsonModel<RuleWebhookAction>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<RuleWebhookAction>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AlertRuleAction>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

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

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

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

Writes the model into a BinaryData.

(Inherited from AlertRuleAction)
IPersistableModel<RuleWebhookAction>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RuleWebhookAction>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<RuleWebhookAction>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to