Dela via


AlertRuleResource Class

Definition

The alert rule resource.

[Microsoft.Rest.Serialization.JsonTransformation]
public class AlertRuleResource : Microsoft.Azure.Management.Monitor.Models.Resource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type AlertRuleResource = class
    inherit Resource
Public Class AlertRuleResource
Inherits Resource
Inheritance
AlertRuleResource
Attributes

Constructors

AlertRuleResource()

Initializes a new instance of the AlertRuleResource class.

AlertRuleResource(String, String, Boolean, RuleCondition, String, String, String, IDictionary<String,String>, String, String, String, String, RuleAction, IList<RuleAction>, Nullable<DateTime>)

Initializes a new instance of the AlertRuleResource class.

Properties

Action

Gets or sets action that is performed when the alert rule becomes active, and when an alert condition is resolved.

Actions

Gets or sets the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.

AlertRuleResourceName

Gets or sets the name of the alert rule.

Condition

Gets or sets the condition that results in the alert rule being activated.

Description

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

Etag

Gets the etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.

(Inherited from Resource)
Id

Gets azure resource Id

(Inherited from Resource)
IsEnabled

Gets or sets the flag that indicates whether the alert rule is enabled.

Kind

Gets metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.

(Inherited from Resource)
LastUpdatedTime

Gets last time the rule was updated in ISO8601 format.

Location

Gets or sets resource location

(Inherited from Resource)
Name

Gets azure resource name

(Inherited from Resource)
ProvisioningState

Gets or sets the provisioning state.

Tags

Gets or sets resource tags

(Inherited from Resource)
Type

Gets azure resource type

(Inherited from Resource)

Methods

Validate()

Validate the object.

Applies to