Example #1
0
 /// <summary>
 /// Initializes a new instance of the MetricAlertResourceInner class.
 /// </summary>
 /// <param name="description">the description of the metric alert that
 /// will be included in the alert email.</param>
 /// <param name="severity">Alert severity {0, 1, 2, 3, 4}</param>
 /// <param name="enabled">the flag that indicates whether the metric
 /// alert is enabled.</param>
 /// <param name="evaluationFrequency">how often the metric alert is
 /// evaluated represented in ISO 8601 duration format.</param>
 /// <param name="windowSize">the period of time (in ISO 8601 duration
 /// format) that is used to monitor alert activity based on the
 /// threshold.</param>
 /// <param name="criteria">defines the specific alert criteria
 /// information.</param>
 /// <param name="scopes">the list of resource id's that this metric
 /// alert is scoped to.</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 MetricAlertResourceInner(string description, int severity, bool enabled, System.TimeSpan evaluationFrequency, System.TimeSpan windowSize, MetricAlertCriteria criteria, string location = default(string), string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), IList <string> scopes = default(IList <string>), IList <Action> actions = default(IList <Action>), System.DateTime?lastUpdatedTime = default(System.DateTime?))
     : base(location, id, name, type, tags)
 {
     Description         = description;
     Severity            = severity;
     Enabled             = enabled;
     Scopes              = scopes;
     EvaluationFrequency = evaluationFrequency;
     WindowSize          = windowSize;
     Criteria            = criteria;
     Actions             = actions;
     LastUpdatedTime     = lastUpdatedTime;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the MetricAlertResourcePatchInner
 /// class.
 /// </summary>
 /// <param name="description">the description of the metric alert that
 /// will be included in the alert email.</param>
 /// <param name="severity">Alert severity {0, 1, 2, 3, 4}</param>
 /// <param name="enabled">the flag that indicates whether the metric
 /// alert is enabled.</param>
 /// <param name="evaluationFrequency">how often the metric alert is
 /// evaluated represented in ISO 8601 duration format.</param>
 /// <param name="windowSize">the period of time (in ISO 8601 duration
 /// format) that is used to monitor alert activity based on the
 /// threshold.</param>
 /// <param name="criteria">defines the specific alert criteria
 /// information.</param>
 /// <param name="tags">Resource tags</param>
 /// <param name="scopes">the list of resource id's that this metric
 /// alert is scoped to.</param>
 /// <param name="autoMitigate">the flag that indicates whether the
 /// alert should be auto resolved or not.</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 MetricAlertResourcePatchInner(string description, int severity, bool enabled, System.TimeSpan evaluationFrequency, System.TimeSpan windowSize, MetricAlertCriteria criteria, IDictionary <string, string> tags = default(IDictionary <string, string>), IList <string> scopes = default(IList <string>), bool?autoMitigate = default(bool?), IList <MetricAlertAction> actions = default(IList <MetricAlertAction>), System.DateTime?lastUpdatedTime = default(System.DateTime?))
 {
     Tags                = tags;
     Description         = description;
     Severity            = severity;
     Enabled             = enabled;
     Scopes              = scopes;
     EvaluationFrequency = evaluationFrequency;
     WindowSize          = windowSize;
     Criteria            = criteria;
     AutoMitigate        = autoMitigate;
     Actions             = actions;
     LastUpdatedTime     = lastUpdatedTime;
     CustomInit();
 }