Show / Hide Table of Contents

    Class AlertRuleResource

    The alert rule resource.

    Inheritance
    Object
    Resource
    AlertRuleResource
    Inherited Members
    Resource.Id
    Resource.Location
    Resource.Name
    Resource.Tags
    Resource.Type
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Monitor.dll
    Syntax
    [Microsoft.Rest.Serialization.JsonTransformation]
    public class AlertRuleResource : Microsoft.Azure.Management.Monitor.Models.Resource

    Constructors

    AlertRuleResource()

    Initializes a new instance of the AlertRuleResource class.

    Declaration
    public AlertRuleResource ();

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

    Initializes a new instance of the AlertRuleResource class.

    Declaration
    public AlertRuleResource (string location, string alertRuleResourceName, bool isEnabled, Microsoft.Azure.Management.Monitor.Models.RuleCondition condition, string id = null, string name = null, string type = null, System.Collections.Generic.IDictionary<string,string> tags = null, string description = null, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.RuleAction> actions = null, Nullable<DateTime> lastUpdatedTime = null);
    Parameters
    String location

    Resource location

    String alertRuleResourceName

    the name of the alert rule.

    Boolean isEnabled

    the flag that indicates whether the alert rule is enabled.

    RuleCondition condition

    the condition that results in the alert rule being activated.

    String id

    Azure resource Id

    String name

    Azure resource name

    String type

    Azure resource type

    IDictionary<String,String> tags

    Resource tags

    String description

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

    IList<RuleAction> actions

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

    Nullable<DateTime> lastUpdatedTime

    Last time the rule was updated in ISO8601 format.

    Properties

    Actions

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.actions")]
    public System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.RuleAction> Actions { get; set; }
    Property Value
    IList<RuleAction>

    AlertRuleResourceName

    Gets or sets the name of the alert rule.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.name")]
    public string AlertRuleResourceName { get; set; }
    Property Value
    String

    Condition

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.condition")]
    public Microsoft.Azure.Management.Monitor.Models.RuleCondition Condition { get; set; }
    Property Value
    RuleCondition

    Description

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.description")]
    public string Description { get; set; }
    Property Value
    String

    IsEnabled

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.isEnabled")]
    public bool IsEnabled { get; set; }
    Property Value
    Boolean

    LastUpdatedTime

    Gets last time the rule was updated in ISO8601 format.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.lastUpdatedTime")]
    public Nullable<DateTime> LastUpdatedTime { get; }
    Property Value
    Nullable<DateTime>

    Methods

    Validate()

    Validate the object.

    Declaration
    public override void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net