Dela via


TimeWindowCustomAlertRule Class

Definition

A custom alert rule that checks if the number of activities (depends on the custom alert type) in a time window is within the given range. Please note TimeWindowCustomAlertRule 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 ActiveConnectionsNotInAllowedRange, AmqpC2DMessagesNotInAllowedRange, AmqpC2DRejectedMessagesNotInAllowedRange, AmqpD2CMessagesNotInAllowedRange, DirectMethodInvokesNotInAllowedRange, FailedLocalLoginsNotInAllowedRange, FileUploadsNotInAllowedRange, HttpC2DMessagesNotInAllowedRange, HttpC2DRejectedMessagesNotInAllowedRange, HttpD2CMessagesNotInAllowedRange, MqttC2DMessagesNotInAllowedRange, MqttC2DRejectedMessagesNotInAllowedRange, MqttD2CMessagesNotInAllowedRange, QueuePurgesNotInAllowedRange, TwinUpdatesNotInAllowedRange and UnauthorizedOperationsNotInAllowedRange.

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

Constructors

TimeWindowCustomAlertRule(Boolean, Int32, Int32, TimeSpan)

Initializes a new instance of TimeWindowCustomAlertRule.

Properties

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)
MaxThreshold

The maximum threshold.

(Inherited from ThresholdCustomAlertRule)
MinThreshold

The minimum threshold.

(Inherited from ThresholdCustomAlertRule)
TimeWindowSize

The time window size in iso8601 format.

Explicit Interface Implementations

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<ThresholdCustomAlertRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

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

Writes the model to the provided Utf8JsonWriter.

(Inherited from ThresholdCustomAlertRule)
IJsonModel<TimeWindowCustomAlertRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<TimeWindowCustomAlertRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

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<ThresholdCustomAlertRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

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

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

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

Writes the model into a BinaryData.

(Inherited from ThresholdCustomAlertRule)
IPersistableModel<TimeWindowCustomAlertRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<TimeWindowCustomAlertRule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<TimeWindowCustomAlertRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to