forked from Azure/azure-resource-manager-schemas
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ReleasePR alertsmanagement] [Hub Generated] Publish private branch '…
…release-alertsmanagement-Microsoft.AlertsManagement-2021-07-22-preview' (#2652) Create to sync Azure/azure-rest-api-specs#21307 [ReCreate this PR](https://github.com/azure-resource-manager-schemas/compare/main...azure-sdk:sdkAuto/alertsmanagement?expand=1)
- Loading branch information
Showing
2 changed files
with
280 additions
and
0 deletions.
There are no files selected for viewing
277 changes: 277 additions & 0 deletions
277
schemas/2021-07-22-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,277 @@ | ||
{ | ||
"id": "https://schema.management.azure.com/schemas/2021-07-22-preview/Microsoft.AlertsManagement.json#", | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "Microsoft.AlertsManagement", | ||
"description": "Microsoft AlertsManagement Resource Types", | ||
"resourceDefinitions": { | ||
"prometheusRuleGroups": { | ||
"type": "object", | ||
"properties": { | ||
"apiVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"2021-07-22-preview" | ||
] | ||
}, | ||
"location": { | ||
"type": "string", | ||
"description": "The geo-location where the resource lives" | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "The name of the rule group." | ||
}, | ||
"properties": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/PrometheusRuleGroupProperties" | ||
}, | ||
{ | ||
"$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/prometheusRuleGroups" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"apiVersion", | ||
"location", | ||
"name", | ||
"properties", | ||
"type" | ||
], | ||
"description": "Microsoft.AlertsManagement/prometheusRuleGroups" | ||
} | ||
}, | ||
"definitions": { | ||
"PrometheusRule": { | ||
"type": "object", | ||
"properties": { | ||
"actions": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/PrometheusRuleGroupAction" | ||
} | ||
}, | ||
{ | ||
"$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. Only relevant for alerts." | ||
}, | ||
"alert": { | ||
"type": "string", | ||
"description": "the name of the alert rule." | ||
}, | ||
"annotations": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"properties": {} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "annotations for rule group. Only relevant for alerts." | ||
}, | ||
"enabled": { | ||
"oneOf": [ | ||
{ | ||
"type": "boolean" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "the flag that indicates whether the Prometheus rule is enabled." | ||
}, | ||
"expression": { | ||
"type": "string", | ||
"description": "the expression to run for the rule." | ||
}, | ||
"for": { | ||
"type": "string", | ||
"description": "the amount of time alert must be active before firing. Only relevant for alerts." | ||
}, | ||
"labels": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"properties": {} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "labels for rule group. Only relevant for alerts." | ||
}, | ||
"record": { | ||
"type": "string", | ||
"description": "the name of the recording rule." | ||
}, | ||
"resolveConfiguration": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/PrometheusRuleResolveConfiguration" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "Specifies the Prometheus alert rule configuration." | ||
}, | ||
"severity": { | ||
"oneOf": [ | ||
{ | ||
"type": "integer" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "the severity of the alerts fired by the rule. Only relevant for alerts." | ||
} | ||
}, | ||
"required": [ | ||
"expression" | ||
] | ||
}, | ||
"PrometheusRuleGroupAction": { | ||
"type": "object", | ||
"properties": { | ||
"actionGroupId": { | ||
"type": "string", | ||
"description": "The resource id of the action group to use." | ||
}, | ||
"actionProperties": { | ||
"oneOf": [ | ||
{ | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"properties": {} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "The properties of an action group object." | ||
} | ||
}, | ||
"description": "An alert action. Only relevant for alerts." | ||
}, | ||
"PrometheusRuleGroupProperties": { | ||
"type": "object", | ||
"properties": { | ||
"clusterName": { | ||
"type": "string", | ||
"description": "the cluster name of the rule group evaluation." | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "the description of the Prometheus rule group 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 Prometheus rule group is enabled." | ||
}, | ||
"interval": { | ||
"type": "string", | ||
"description": "the interval in which to run the Prometheus rule group represented in ISO 8601 duration format. Should be between 1 and 15 minutes" | ||
}, | ||
"rules": { | ||
"oneOf": [ | ||
{ | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/PrometheusRule" | ||
} | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "defines the rules in the Prometheus rule group." | ||
}, | ||
"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 rule group is scoped to." | ||
} | ||
}, | ||
"required": [ | ||
"rules", | ||
"scopes" | ||
], | ||
"description": "An alert rule." | ||
}, | ||
"PrometheusRuleResolveConfiguration": { | ||
"type": "object", | ||
"properties": { | ||
"autoResolved": { | ||
"oneOf": [ | ||
{ | ||
"type": "boolean" | ||
}, | ||
{ | ||
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
} | ||
], | ||
"description": "the flag that indicates whether or not to auto resolve a fired alert." | ||
}, | ||
"timeToResolve": { | ||
"type": "string", | ||
"description": "the duration a rule must evaluate as healthy before the fired alert is automatically resolved represented in ISO 8601 duration format. Should be between 1 and 15 minutes" | ||
} | ||
}, | ||
"description": "Specifies the Prometheus alert rule configuration." | ||
} | ||
} | ||
} |
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