diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/ResourceHealthAlertRules.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/ResourceHealthAlertRules.json index 0ede910f5f1b..82b212290f05 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/ResourceHealthAlertRules.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/ResourceHealthAlertRules.json @@ -457,7 +457,7 @@ "namespace": { "type": "string", "enum": [ - "VmGuestHealth" + "GuestVmHealth" ], "x-ms-enum": { "name": "HealthAlertsNamespace", @@ -472,7 +472,7 @@ "description": "The rule criterion that defines the conditions of the alert rule." }, "VmGuestHealthAlertCriterion": { - "x-ms-discriminator-value": "VmGuestHealth", + "x-ms-discriminator-value": "GuestVmHealth", "type": "object", "allOf": [ { @@ -480,9 +480,19 @@ } ], "properties": { - "healthMonitorName": { - "type": "string", - "description": "Name of health monitor on which to define alert" + "monitorNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Names of health monitor on which to define alert" + }, + "monitorTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Names of health monitor type on which to define alert" }, "healthStates": { "type": "array", @@ -493,7 +503,7 @@ } }, "required": [ - "healthMonitorName" + "healthStates" ], "description": "Specifies the health alert criteria to alert on." }, @@ -502,10 +512,19 @@ "properties": { "healthStateName": { "type": "string", - "description": "Health state" + "description": "Health state name", + "enum": [ + "Warning", + "Critical" + ], + "x-ms-enum": { + "name": "HealthStateName", + "modelAsString": true + } }, "severity": { - "type": "string", + "type": "integer", + "format": "int64", "description": "Severity of alert fired" } }, diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/examples/createOrUpdateResourceHealthAlertRule.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/examples/createOrUpdateResourceHealthAlertRule.json index cf3775ea4d92..199a988ca62d 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/examples/createOrUpdateResourceHealthAlertRule.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/examples/createOrUpdateResourceHealthAlertRule.json @@ -18,7 +18,17 @@ "monitorNames": [ "root" ], - "namespace": "VmGuestHealth" + "healthStates": [ + { + "name": "Critical", + "severity": 2 + }, + { + "name": "Warning", + "severity": 3 + } + ], + "namespace": "GuestVmHealth" } ] }, @@ -51,7 +61,7 @@ "allOf": [ { "monitorNames": "root", - "namespace": "VmGuestHealth" + "namespace": "GuestVmHealth" } ] }, diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/examples/getResourceHealthAlertRule.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/examples/getResourceHealthAlertRule.json index 05e87704df81..96ce9b3e6cec 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/examples/getResourceHealthAlertRule.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/examples/getResourceHealthAlertRule.json @@ -24,7 +24,17 @@ "monitorNames": [ "root" ], - "namespace": "VmGuestHealth" + "healthStates": [ + { + "name": "Critical", + "severity": 2 + }, + { + "name": "Warning", + "severity": 3 + } + ], + "namespace": "GuestVmHealth" } ] }, diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/examples/listResourceHealthAlertRules.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/examples/listResourceHealthAlertRules.json index e3fb76364246..10d0ac94ba11 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/examples/listResourceHealthAlertRules.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/examples/listResourceHealthAlertRules.json @@ -25,7 +25,17 @@ "monitorNames": [ "root" ], - "namespace": "VmGuestHealth" + "healthStates": [ + { + "name": "Critical", + "severity": 2 + }, + { + "name": "Warning", + "severity": 3 + } + ], + "namespace": "GuestVmHealth" } ] }, diff --git a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/examples/patchResourceHealthAlertRule.json b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/examples/patchResourceHealthAlertRule.json index 6a697de53e05..4c80833897c5 100644 --- a/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/examples/patchResourceHealthAlertRule.json +++ b/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2020-08-04-preview/examples/patchResourceHealthAlertRule.json @@ -17,7 +17,17 @@ "monitorNames": [ "root" ], - "namespace": "VmGuestHealth" + "healthStates": [ + { + "name": "Critical", + "severity": 2 + }, + { + "name": "Warning", + "severity": 3 + } + ], + "namespace": "GuestVmHealth" } ] }, @@ -52,7 +62,17 @@ "monitorNames": [ "root" ], - "namespace": "VmGuestHealth" + "healthStates": [ + { + "name": "Critical", + "severity": 2 + }, + { + "name": "Warning", + "severity": 3 + } + ], + "namespace": "GuestVmHealth" } ] },