Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update swagger with new properties #11901

Merged
merged 14 commits into from
Dec 11, 2020
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