forked from Azure/azure-resource-manager-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from a0b9293e4d28863b7287eaf75d8052309576dbfc
- Loading branch information
SDK Automation
committed
Sep 21, 2020
1 parent
791a4e1
commit 60df138
Showing
2 changed files
with
261 additions
and
0 deletions.
There are no files selected for viewing
258 changes: 258 additions & 0 deletions
258
schemas/2020-08-04-preview/Microsoft.AlertsManagement.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters