Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@
"namespace": {
"type": "string",
"enum": [
"VmGuestHealth"
"GuestVmHealth"
],
"x-ms-enum": {
"name": "HealthAlertsNamespace",
Expand All @@ -472,17 +472,27 @@
"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": [
{
"$ref": "#/definitions/HealthAlertCriterion"
}
],
"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",
Expand All @@ -493,7 +503,7 @@
}
},
"required": [
"healthMonitorName"
"healthStates"
],
"description": "Specifies the health alert criteria to alert on."
},
Expand All @@ -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"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,17 @@
"monitorNames": [
"root"
],
"namespace": "VmGuestHealth"
"healthStates": [
{
"name": "Critical",
"severity": 2
},
{
"name": "Warning",
"severity": 3
}
],
"namespace": "GuestVmHealth"
}
]
},
Expand Down Expand Up @@ -51,7 +61,7 @@
"allOf": [
{
"monitorNames": "root",
"namespace": "VmGuestHealth"
"namespace": "GuestVmHealth"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,17 @@
"monitorNames": [
"root"
],
"namespace": "VmGuestHealth"
"healthStates": [
{
"name": "Critical",
"severity": 2
},
{
"name": "Warning",
"severity": 3
}
],
"namespace": "GuestVmHealth"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,17 @@
"monitorNames": [
"root"
],
"namespace": "VmGuestHealth"
"healthStates": [
{
"name": "Critical",
"severity": 2
},
{
"name": "Warning",
"severity": 3
}
],
"namespace": "GuestVmHealth"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,17 @@
"monitorNames": [
"root"
],
"namespace": "VmGuestHealth"
"healthStates": [
{
"name": "Critical",
"severity": 2
},
{
"name": "Warning",
"severity": 3
}
],
"namespace": "GuestVmHealth"
}
]
},
Expand Down Expand Up @@ -52,7 +62,17 @@
"monitorNames": [
"root"
],
"namespace": "VmGuestHealth"
"healthStates": [
{
"name": "Critical",
"severity": 2
},
{
"name": "Warning",
"severity": 3
}
],
"namespace": "GuestVmHealth"
}
]
},
Expand Down