diff --git a/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRule-LogToMetricAction.json b/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRule-LogToMetricAction.json index 3adc47b8bfcf..72b58c308488 100644 --- a/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRule-LogToMetricAction.json +++ b/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRule-LogToMetricAction.json @@ -22,7 +22,7 @@ "dimensions": [] } ], - "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.LogToMetricAction" + "odata.type": "LogToMetricAction" } } } @@ -40,7 +40,6 @@ }, "properties": { "description": "log to metric description", - "displayName": "logtometricfoo", "enabled": "true", "lastUpdatedTime": "2018-09-04T06:31:56.3737792Z", "provisioningState": "Succeeded", @@ -50,13 +49,11 @@ }, "schedule": null, "action": { - "criteria": [ - { + "criteria": { "metricName": "Average_% Idle Time", "dimensions": [] - } - ], - "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.LogToMetricAction" + }, + "odata.type": "LogToMetricAction" } } } @@ -82,13 +79,11 @@ }, "schedule": null, "action": { - "criteria": [ - { + "criteria": { "metricName": "Average_% Idle Time", "dimensions": [] - } - ], - "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.LogToMetricAction" + }, + "odata.type": "LogToMetricAction" } } } diff --git a/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRules.json b/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRules.json index c22fd5e8c4aa..995782612e90 100644 --- a/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRules.json +++ b/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/createOrUpdateScheduledQueryRules.json @@ -24,7 +24,7 @@ "timeWindowInMinutes": 15 }, "action": { - "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "odata.type": "AlertingAction", "severity": "1", "aznsAction": { "actionGroup": [], @@ -71,7 +71,7 @@ "timeWindowInMinutes": 15 }, "action": { - "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "odata.type": "AlertingAction", "severity": "1", "aznsAction": { "actionGroup": [], @@ -117,7 +117,7 @@ "timeWindowInMinutes": 15 }, "action": { - "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "odata.type": "AlertingAction", "severity": "1", "trigger": { "thresholdOperator": "GreaterThan", diff --git a/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/getScheduledQueryRules.json b/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/getScheduledQueryRules.json index d76619f03ad3..bfcf3facb637 100644 --- a/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/getScheduledQueryRules.json +++ b/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/getScheduledQueryRules.json @@ -31,7 +31,7 @@ "timeWindowInMinutes": 15 }, "action": { - "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "odata.type": "AlertingAction", "severity": "1", "trigger": { "thresholdOperator": "GreaterThan", diff --git a/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/listScheduledQueryRules.json b/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/listScheduledQueryRules.json index 81c5d1757134..cb9b599e07ad 100644 --- a/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/listScheduledQueryRules.json +++ b/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/listScheduledQueryRules.json @@ -32,7 +32,7 @@ "timeWindowInMinutes": 15 }, "action": { - "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "odata.type": "AlertingAction", "severity": "1", "trigger": { "thresholdOperator": "GreaterThan", @@ -75,7 +75,7 @@ "timeWindowInMinutes": 30 }, "action": { - "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "odata.type": "AlertingAction", "severity": "1", "trigger": { "thresholdOperator": "GreaterThan", diff --git a/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/patchScheduledQueryRules.json b/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/patchScheduledQueryRules.json index a7275bfcf41d..930beb9c8548 100644 --- a/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/patchScheduledQueryRules.json +++ b/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/examples/patchScheduledQueryRules.json @@ -36,7 +36,7 @@ "timeWindowInMinutes": 15 }, "action": { - "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "odata.type": "AlertingAction", "severity": "1", "aznsAction": { "actionGroup": [], diff --git a/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/scheduledQueryRule_API.json b/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/scheduledQueryRule_API.json index 5d3fe723ca8b..3f40f7f14898 100644 --- a/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/scheduledQueryRule_API.json +++ b/specification/monitor/resource-manager/microsoft.insights/stable/2018-04-16/scheduledQueryRule_API.json @@ -632,7 +632,7 @@ }, "AlertingAction": { "description": "Specifiy action need to be taken when rule type is Alert", - "x-ms-discriminator-value": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", + "x-ms-discriminator-value": "AlertingAction", "type": "object", "allOf": [ { @@ -719,7 +719,7 @@ }, "LogToMetricAction": { "description": "Specifiy action need to be taken when rule type is converting log to metric", - "x-ms-discriminator-value": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.LogToMetricAction", + "x-ms-discriminator-value": "LogToMetricAction", "type": "object", "allOf": [ {