Skip to content

Commit

Permalink
Generated from a0b9293e4d28863b7287eaf75d8052309576dbfc
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Sep 21, 2020
1 parent 791a4e1 commit 60df138
Show file tree
Hide file tree
Showing 2 changed files with 261 additions and 0 deletions.
258 changes: 258 additions & 0 deletions schemas/2020-08-04-preview/Microsoft.AlertsManagement.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,258 @@
{
"id": "https://schema.management.azure.com/schemas/2020-08-04-preview/Microsoft.AlertsManagement.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.AlertsManagement",
"description": "Microsoft AlertsManagement Resource Types",
"resourceDefinitions": {
"resourceHealthAlerts": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2020-08-04-preview"
]
},
"location": {
"type": "string",
"description": "Resource location"
},
"name": {
"type": "string",
"description": "The name of the rule."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/HealthAlertProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "An alert rule."
},
"tags": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Resource tags"
},
"type": {
"type": "string",
"enum": [
"Microsoft.AlertsManagement/resourceHealthAlerts"
]
}
},
"required": [
"apiVersion",
"location",
"name",
"properties",
"type"
],
"description": "Microsoft.AlertsManagement/resourceHealthAlerts"
}
},
"definitions": {
"HealthAlertAction": {
"type": "object",
"properties": {
"actionGroupId": {
"type": "string",
"description": "the id of the action group to use."
},
"webHookProperties": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The properties of a webhook object."
}
},
"description": "An alert action."
},
"HealthAlertCriteria": {
"type": "object",
"properties": {
"allOf": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/HealthAlertCriterion"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The list of metric criteria for this 'all of' operation. "
}
},
"description": "Specifies the resource health alert criteria for a single resource that has multiple metric criteria."
},
"HealthAlertCriterion": {
"type": "object",
"oneOf": [
{
"$ref": "#/definitions/VmGuestHealthAlertCriterion"
}
],
"properties": {
"additionalProperties": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {}
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Unmatched properties from the message are deserialized this collection"
}
},
"description": "The rule criterion that defines the conditions of the alert rule."
},
"HealthAlertProperties": {
"type": "object",
"properties": {
"actions": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/HealthAlertAction"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved."
},
"criteria": {
"oneOf": [
{
"$ref": "#/definitions/HealthAlertCriteria"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Specifies the resource health alert criteria for a single resource that has multiple metric criteria."
},
"description": {
"type": "string",
"description": "the description of the health alert that will be included in the alert email."
},
"enabled": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "the flag that indicates whether the health alert is enabled."
},
"scopes": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "the list of resource id's that this health alert is scoped to."
}
},
"required": [
"criteria",
"description",
"enabled"
],
"description": "An alert rule."
},
"HealthState": {
"type": "object",
"properties": {
"healthStateName": {
"type": "string",
"description": "Health state"
},
"severity": {
"type": "string",
"description": "Severity of alert fired"
}
},
"required": [
"healthStateName",
"severity"
],
"description": "Specifies the health state to alert on and the corresponding severity"
},
"VmGuestHealthAlertCriterion": {
"type": "object",
"properties": {
"healthMonitorName": {
"type": "string",
"description": "Name of health monitor on which to define alert"
},
"healthStates": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/HealthState"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Health states to alert on"
},
"namespace": {
"type": "string",
"enum": [
"VmGuestHealth"
]
}
},
"required": [
"healthMonitorName",
"namespace"
],
"description": "Specifies the health alert criteria to alert on."
}
}
}
3 changes: 3 additions & 0 deletions schemas/common/autogeneratedResources.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2019-06-01/Microsoft.AlertsManagement.json#/resourceDefinitions/smartDetectorAlertRules"
},
{
"$ref": "https://schema.management.azure.com/schemas/2020-08-04-preview/Microsoft.AlertsManagement.json#/resourceDefinitions/resourceHealthAlerts"
},
{
"$ref": "https://schema.management.azure.com/schemas/2016-05-16/Microsoft.AnalysisServices.json#/resourceDefinitions/servers"
},
Expand Down

0 comments on commit 60df138

Please sign in to comment.