Skip to content

Commit

Permalink
CodeGen from PR 14103 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Hub Generated] Review request for Microsoft.Insights to add version stable/2015-07-01 (#14103)

* Create metricDefinitions_API.json

* Update readme.md

* Create GetMetricDefinitions.json

* Update metricDefinitions_API.json

Fix resource provider casing

* Update metricDefinitions_API.json

Use standardized error response format

* Update metricDefinitions_API.json

Need to use same error response format for all apis in this api version

* Create operations_API.json

Add operations API

* Create OperationList.json

Add operations example

* Update readme.md

Add operations API

* Update operations_API.json

Fix the operations API

* Update readme.md

Add suppressions for DefaultErrorResponseSchema

* Update metricDefinitions_API.json

Fix autorest, lint, etc issues

* Update operations_API.json

Fix autorest / lint / etc issues

* Update GetMetricDefinitions.json

Update example to better match what is being returned now.

* Add OperationsAPI Lint suppression

Add OperationsAPI Lint suppression

* Suppress R3023 due to a bug with the rule not realizing the operations API is specified.

* Modify the suppression reason

* Make ResourceUriParameter in sync with the one in service diagnostics settings API

* Update readme.md

Revert back to package-2021-04 tag for the SDK to fix build breaks
  • Loading branch information
SDKAuto committed Aug 24, 2021
1 parent 36bbe13 commit e7dce1c
Showing 1 changed file with 43 additions and 2 deletions.
45 changes: 43 additions & 2 deletions schemas/2021-02-01-preview/Microsoft.Insights.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,41 @@
}
},
"definitions": {
"Actions": {
"type": "object",
"properties": {
"actionGroups": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Action Group resource Ids to invoke when the alert fires."
},
"customProperties": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The properties of an alert payload."
}
},
"description": "Actions to invoke when the alert fires."
},
"Condition": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -272,8 +307,14 @@
"type": "object",
"properties": {
"actions": {
"type": "object",
"properties": {},
"oneOf": [
{
"$ref": "#/definitions/Actions"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Actions to invoke when the alert fires."
},
"autoMitigate": {
Expand Down

0 comments on commit e7dce1c

Please sign in to comment.