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.
CodeGen from PR 13890 in Azure/azure-rest-api-specs
Merge 9ec0c512e4b8a752ed5a4389a02421a5df28652b into e1ab90da9a49c2f22ed2d836332a00a2b12cc4e1
- Loading branch information
SDKAuto
committed
Apr 28, 2021
1 parent
ab51a5d
commit 8c492be
Showing
2 changed files
with
246 additions
and
0 deletions.
There are no files selected for viewing
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,243 @@ | ||
{ | ||
"id": "https://schema.management.azure.com/schemas/2021-04-01/Microsoft.AlertsManagement.json#", | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "microsoft.alertsManagement", | ||
"description": "microsoft alertsManagement Resource Types", | ||
"resourceDefinitions": { | ||
"smartDetectorAlertRules": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2021-04-01" | ||
] | ||
}, | ||
"location": { | ||
"type": "string", | ||
"default": "global", | ||
"description": "The resource location." | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "The name of the alert rule." | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/AlertRuleProperties" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The alert rule properties." | ||
}, | ||
"tags": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"properties": {} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The resource tags." | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"microsoft.alertsManagement/smartDetectorAlertRules" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"name", | ||
"properties", | ||
"type" | ||
], | ||
"description": "microsoft.alertsManagement/smartDetectorAlertRules" | ||
} | ||
}, | ||
"definitions": { | ||
"ActionGroupsInformation": { | ||
"type": "object", | ||
"properties": { | ||
"customEmailSubject": { | ||
"type": "string", | ||
"description": "An optional custom email subject to use in email notifications." | ||
}, | ||
"customWebhookPayload": { | ||
"type": "string", | ||
"description": "An optional custom web-hook payload to use in web-hook notifications." | ||
}, | ||
"groupIds": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The Action Group resource IDs." | ||
} | ||
}, | ||
"required": [ | ||
"groupIds" | ||
], | ||
"description": "The Action Groups information, used by the alert rule." | ||
}, | ||
"AlertRuleProperties": { | ||
"type": "object", | ||
"properties": { | ||
"actionGroups": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/ActionGroupsInformation" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The Action Groups information, used by the alert rule." | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "The alert rule description." | ||
}, | ||
"detector": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/Detector" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The detector information. By default this is not populated, unless it's specified in expandDetector" | ||
}, | ||
"frequency": { | ||
"type": "string", | ||
"format": "duration", | ||
"description": "The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 1 minute, depending on the detector." | ||
}, | ||
"scope": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The alert rule resources scope." | ||
}, | ||
"severity": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"Sev0", | ||
"Sev1", | ||
"Sev2", | ||
"Sev3", | ||
"Sev4" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The alert rule severity." | ||
}, | ||
"state": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"Enabled", | ||
"Disabled" | ||
] | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The alert rule state." | ||
}, | ||
"throttling": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/ThrottlingInformation" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Optional throttling information for the alert rule." | ||
} | ||
}, | ||
"required": [ | ||
"actionGroups", | ||
"detector", | ||
"frequency", | ||
"scope", | ||
"severity", | ||
"state" | ||
], | ||
"description": "The alert rule properties." | ||
}, | ||
"Detector": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "The detector id." | ||
}, | ||
"parameters": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "object", | ||
"properties": {} | ||
}, | ||
"properties": {} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The detector's parameters.'" | ||
} | ||
}, | ||
"required": [ | ||
"id" | ||
], | ||
"description": "The detector information. By default this is not populated, unless it's specified in expandDetector" | ||
}, | ||
"ThrottlingInformation": { | ||
"type": "object", | ||
"properties": { | ||
"duration": { | ||
"type": "string", | ||
"format": "duration", | ||
"description": "The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes" | ||
} | ||
}, | ||
"description": "Optional throttling information for the alert rule." | ||
} | ||
} | ||
} |
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