示例#1
0
 /// <summary>
 /// Initializes a new instance of the AlertRuleResourcePatchInner
 /// class.
 /// </summary>
 /// <param name="name">the name of the alert rule.</param>
 /// <param name="isEnabled">the flag that indicates whether the alert
 /// rule is enabled.</param>
 /// <param name="condition">the condition that results in the alert
 /// rule being activated.</param>
 /// <param name="tags">Resource tags</param>
 /// <param name="description">the description of the alert rule that
 /// will be included in the alert email.</param>
 /// <param name="actions">the array of actions that are performed when
 /// the alert rule becomes active, and when an alert condition is
 /// resolved.</param>
 /// <param name="lastUpdatedTime">Last time the rule was updated in
 /// ISO8601 format.</param>
 public AlertRuleResourcePatchInner(string name, bool isEnabled, RuleCondition condition, IDictionary <string, string> tags = default(IDictionary <string, string>), string description = default(string), IList <RuleAction> actions = default(IList <RuleAction>), System.DateTime?lastUpdatedTime = default(System.DateTime?))
 {
     Tags            = tags;
     Name            = name;
     Description     = description;
     IsEnabled       = isEnabled;
     Condition       = condition;
     Actions         = actions;
     LastUpdatedTime = lastUpdatedTime;
     CustomInit();
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the AlertRuleResourceInner class.
 /// </summary>
 /// <param name="alertRuleResourceName">the name of the alert
 /// rule.</param>
 /// <param name="isEnabled">the flag that indicates whether the alert
 /// rule is enabled.</param>
 /// <param name="condition">the condition that results in the alert
 /// rule being activated.</param>
 /// <param name="description">the description of the alert rule that
 /// will be included in the alert email.</param>
 /// <param name="actions">the array of actions that are performed when
 /// the alert rule becomes active, and when an alert condition is
 /// resolved.</param>
 /// <param name="lastUpdatedTime">Last time the rule was updated in
 /// ISO8601 format.</param>
 public AlertRuleResourceInner(string location, string alertRuleResourceName, bool isEnabled, RuleCondition condition, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string description = default(string), IList <RuleAction> actions = default(IList <RuleAction>), System.DateTime?lastUpdatedTime = default(System.DateTime?))
     : base(location, id, name, type, tags)
 {
     AlertRuleResourceName = alertRuleResourceName;
     Description           = description;
     IsEnabled             = isEnabled;
     Condition             = condition;
     Actions         = actions;
     LastUpdatedTime = lastUpdatedTime;
     CustomInit();
 }