Table of Contents

Class AzureAlertRuleBase

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents an Azure alert rule.

public abstract class AzureAlertRuleBase : GlobalSerializableClassicBase, IComparable<AzureAlertRuleBase>
Inheritance
AzureAlertRuleBase
Implements
Derived

Constructors

AzureAlertRuleBase()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.AzureAlertRuleBase class.

public AzureAlertRuleBase()

Properties

ActionNames

Gets the names of the configured actions.

public SerializableStringCollection ActionNames { get; set; }

Property Value

SerializableStringCollection

Actions

Gets or sets the resource identifiers of the action groups to execute for the alert rule.

public AzureResourceReferences Actions { get; set; }

Property Value

AzureResourceReferences

Description

Gets or sets the description of the alert rule.

public string Description { get; set; }

Property Value

string

Id

Gets or sets the unique identifier of the alert rule - for example "/subscriptions/1245ee1c-ca9c-4f09-9f48-73e77b9c688a/resourceGroups/webservers/providers/microsoft.insights/alertrules/webserveralert".

public string Id { get; set; }

Property Value

string

Identifier

Gets or sets the unique system assigned identifier of the alert. This is for internal use only.

public Guid Identifier { get; set; }

Property Value

Guid

IsEnabled

Gets or sets whether the alert rule is enabled.

public BooleanOption IsEnabled { get; set; }

Property Value

BooleanOption

Name

Gets or sets the name of the alert rule.

public string Name { get; set; }

Property Value

string

ResourceGroupName

Gets or sets the name of the resource group to which this alert rule resides.

public string ResourceGroupName { get; set; }

Property Value

string

Scopes

Gets or sets the scopes to which the alert rule applies.

public SerializableStringCollection Scopes { get; set; }

Property Value

SerializableStringCollection

Severity

Gets or sets the severity level.

public AzureAlertRuleSeverity Severity { get; set; }

Property Value

AzureAlertRuleSeverity

SeverityString

Gets the severity as a human readable string.

public string SeverityString { get; set; }

Property Value

string

TypeDisplayName

Gets the display name of the alert rule type.

public string TypeDisplayName { get; set; }

Property Value

string

Methods

CompareTo(AzureAlertRuleBase)

Compares two CENTREL.XIA.Configuration.Types.AzureAlertRuleBase objects to allow for sorting by display name.

public int CompareTo(AzureAlertRuleBase other)

Parameters

other AzureAlertRuleBase

The CENTREL.XIA.Configuration.Types.AzureAlertRuleBase to compare to.

Returns

int

The sort order of the two CENTREL.XIA.Configuration.Types.AzureAlertRuleBase objects.