Show / Hide Table of Contents

    Class AlertRuleResourcePatch

    The alert rule object for patch operations.

    Inheritance
    Object
    AlertRuleResourcePatch
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Monitor.dll
    Syntax
    [Microsoft.Rest.Serialization.JsonTransformation]
    public class AlertRuleResourcePatch

    Constructors

    AlertRuleResourcePatch()

    Initializes a new instance of the AlertRuleResourcePatch class.

    Declaration
    public AlertRuleResourcePatch ();

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

    Initializes a new instance of the AlertRuleResourcePatch class.

    Declaration
    public AlertRuleResourcePatch (string name, bool isEnabled, Microsoft.Azure.Management.Monitor.Models.RuleCondition condition, 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 name

    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.

    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>

    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>

    Name

    Gets or sets the name of the alert rule.

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

    Tags

    Gets or sets resource tags

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="tags")]
    public System.Collections.Generic.IDictionary<string,string> Tags { get; set; }
    Property Value
    IDictionary<String,String>

    Methods

    Validate()

    Validate the object.

    Declaration
    public virtual void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net