diff --git a/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/DynamicMetricCriteria.cs b/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/DynamicMetricCriteria.cs
index 298bcbb4583f..901f174c6ba4 100644
--- a/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/DynamicMetricCriteria.cs
+++ b/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/DynamicMetricCriteria.cs
@@ -38,10 +38,12 @@ public DynamicMetricCriteria()
/// the criteria time aggregation
/// types.
/// The operator used to compare the
- /// metric value against the threshold.
+ /// metric value against the threshold. Possible values include:
+ /// 'GreaterThan', 'LessThan', 'GreaterOrLessThan'
/// The extent of deviation required to
/// trigger an alert. This will affect how tight the threshold is to
- /// the metric series pattern.
+ /// the metric series pattern. Possible values include: 'Low',
+ /// 'Medium', 'High'
/// The minimum number of violations
/// required within the selected lookback time window required to raise
/// an alert.
@@ -52,7 +54,7 @@ public DynamicMetricCriteria()
/// Use this option to set the date from
/// which to start learning the metric historical data and calculate
/// the dynamic thresholds (in ISO8601 format)
- public DynamicMetricCriteria(string name, string metricName, object timeAggregation, object operatorProperty, object alertSensitivity, DynamicThresholdFailingPeriods failingPeriods, IDictionary additionalProperties = default(IDictionary), string metricNamespace = default(string), IList dimensions = default(IList), System.DateTime? ignoreDataBefore = default(System.DateTime?))
+ public DynamicMetricCriteria(string name, string metricName, object timeAggregation, string operatorProperty, string alertSensitivity, DynamicThresholdFailingPeriods failingPeriods, IDictionary additionalProperties = default(IDictionary), string metricNamespace = default(string), IList dimensions = default(IList), System.DateTime? ignoreDataBefore = default(System.DateTime?))
: base(name, metricName, timeAggregation, additionalProperties, metricNamespace, dimensions)
{
OperatorProperty = operatorProperty;
@@ -69,18 +71,19 @@ public DynamicMetricCriteria()
///
/// Gets or sets the operator used to compare the metric value against
- /// the threshold.
+ /// the threshold. Possible values include: 'GreaterThan', 'LessThan',
+ /// 'GreaterOrLessThan'
///
[JsonProperty(PropertyName = "operator")]
- public object OperatorProperty { get; set; }
+ public string OperatorProperty { get; set; }
///
/// Gets or sets the extent of deviation required to trigger an alert.
/// This will affect how tight the threshold is to the metric series
- /// pattern.
+ /// pattern. Possible values include: 'Low', 'Medium', 'High'
///
[JsonProperty(PropertyName = "alertSensitivity")]
- public object AlertSensitivity { get; set; }
+ public string AlertSensitivity { get; set; }
///
/// Gets or sets the minimum number of violations required within the
diff --git a/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/DynamicThresholdOperator.cs b/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/DynamicThresholdOperator.cs
new file mode 100644
index 000000000000..a887196950ae
--- /dev/null
+++ b/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/DynamicThresholdOperator.cs
@@ -0,0 +1,23 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Monitor.Models
+{
+
+ ///
+ /// Defines values for DynamicThresholdOperator.
+ ///
+ public static class DynamicThresholdOperator
+ {
+ public const string GreaterThan = "GreaterThan";
+ public const string LessThan = "LessThan";
+ public const string GreaterOrLessThan = "GreaterOrLessThan";
+ }
+}
diff --git a/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/DynamicThresholdSensitivity.cs b/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/DynamicThresholdSensitivity.cs
new file mode 100644
index 000000000000..1b8751ab78b3
--- /dev/null
+++ b/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/DynamicThresholdSensitivity.cs
@@ -0,0 +1,23 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Monitor.Models
+{
+
+ ///
+ /// Defines values for DynamicThresholdSensitivity.
+ ///
+ public static class DynamicThresholdSensitivity
+ {
+ public const string Low = "Low";
+ public const string Medium = "Medium";
+ public const string High = "High";
+ }
+}
diff --git a/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/MetricAlertAction.cs b/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/MetricAlertAction.cs
index 8341e8e002b0..b350094e1de4 100644
--- a/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/MetricAlertAction.cs
+++ b/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/MetricAlertAction.cs
@@ -33,12 +33,12 @@ public MetricAlertAction()
///
/// the id of the action group to
/// use.
- /// The properties of a webhook
+ /// The properties of a webhook
/// object.
- public MetricAlertAction(string actionGroupId = default(string), IDictionary webhookProperties = default(IDictionary))
+ public MetricAlertAction(string actionGroupId = default(string), IDictionary webHookProperties = default(IDictionary))
{
ActionGroupId = actionGroupId;
- WebhookProperties = webhookProperties;
+ WebHookProperties = webHookProperties;
CustomInit();
}
@@ -56,8 +56,8 @@ public MetricAlertAction()
///
/// Gets or sets the properties of a webhook object.
///
- [JsonProperty(PropertyName = "webhookProperties")]
- public IDictionary WebhookProperties { get; set; }
+ [JsonProperty(PropertyName = "webHookProperties")]
+ public IDictionary WebHookProperties { get; set; }
}
}
diff --git a/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/MetricCriteria.cs b/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/MetricCriteria.cs
index eac6ab2bad92..af85cdd1c6fc 100644
--- a/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/MetricCriteria.cs
+++ b/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/MetricCriteria.cs
@@ -37,14 +37,16 @@ public MetricCriteria()
/// Name of the metric.
/// the criteria time aggregation
/// types.
- /// the criteria operator.
+ /// the criteria operator. Possible
+ /// values include: 'Equals', 'NotEquals', 'GreaterThan',
+ /// 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual'
/// the criteria threshold value that activates
/// the alert.
/// Unmatched properties from the
/// message are deserialized this collection
/// Namespace of the metric.
/// List of dimension conditions.
- public MetricCriteria(string name, string metricName, object timeAggregation, object operatorProperty, double threshold, IDictionary additionalProperties = default(IDictionary), string metricNamespace = default(string), IList dimensions = default(IList))
+ public MetricCriteria(string name, string metricName, object timeAggregation, string operatorProperty, double threshold, IDictionary additionalProperties = default(IDictionary), string metricNamespace = default(string), IList dimensions = default(IList))
: base(name, metricName, timeAggregation, additionalProperties, metricNamespace, dimensions)
{
OperatorProperty = operatorProperty;
@@ -58,10 +60,12 @@ public MetricCriteria()
partial void CustomInit();
///
- /// Gets or sets the criteria operator.
+ /// Gets or sets the criteria operator. Possible values include:
+ /// 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual',
+ /// 'LessThan', 'LessThanOrEqual'
///
[JsonProperty(PropertyName = "operator")]
- public object OperatorProperty { get; set; }
+ public string OperatorProperty { get; set; }
///
/// Gets or sets the criteria threshold value that activates the alert.
diff --git a/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/OperatorModel.cs b/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/OperatorModel.cs
new file mode 100644
index 000000000000..eff94a69a45d
--- /dev/null
+++ b/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/OperatorModel.cs
@@ -0,0 +1,26 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Monitor.Models
+{
+
+ ///
+ /// Defines values for OperatorModel.
+ ///
+ public static class OperatorModel
+ {
+ public const string Equals = "Equals";
+ public const string NotEquals = "NotEquals";
+ public const string GreaterThan = "GreaterThan";
+ public const string GreaterThanOrEqual = "GreaterThanOrEqual";
+ public const string LessThan = "LessThan";
+ public const string LessThanOrEqual = "LessThanOrEqual";
+ }
+}
diff --git a/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/WebtestLocationAvailabilityCriteria.cs b/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/WebtestLocationAvailabilityCriteria.cs
new file mode 100644
index 000000000000..abd96cdd1414
--- /dev/null
+++ b/sdk/monitor/Microsoft.Azure.Management.Monitor/src/Generated/Models/WebtestLocationAvailabilityCriteria.cs
@@ -0,0 +1,90 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Monitor.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Specifies the metric alert rule criteria for a web test resource.
+ ///
+ public partial class WebtestLocationAvailabilityCriteria
+ {
+ ///
+ /// Initializes a new instance of the
+ /// WebtestLocationAvailabilityCriteria class.
+ ///
+ public WebtestLocationAvailabilityCriteria()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// WebtestLocationAvailabilityCriteria class.
+ ///
+ /// The Application Insights web test
+ /// Id.
+ /// The Application Insights resource
+ /// Id.
+ /// The number of failed
+ /// locations.
+ public WebtestLocationAvailabilityCriteria(string webTestId, string componentId, double failedLocationCount)
+ {
+ WebTestId = webTestId;
+ ComponentId = componentId;
+ FailedLocationCount = failedLocationCount;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the Application Insights web test Id.
+ ///
+ [JsonProperty(PropertyName = "webTestId")]
+ public string WebTestId { get; set; }
+
+ ///
+ /// Gets or sets the Application Insights resource Id.
+ ///
+ [JsonProperty(PropertyName = "componentId")]
+ public string ComponentId { get; set; }
+
+ ///
+ /// Gets or sets the number of failed locations.
+ ///
+ [JsonProperty(PropertyName = "failedLocationCount")]
+ public double FailedLocationCount { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (WebTestId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "WebTestId");
+ }
+ if (ComponentId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "ComponentId");
+ }
+ }
+ }
+}