Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR applicationinsights] Workbooks correctness 2021-08-01 #4804

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
208 changes: 208 additions & 0 deletions schemas/2021-08-01/Microsoft.Insights.Application.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
{
"id": "https://schema.management.azure.com/schemas/2021-08-01/Microsoft.Insights.Application.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.Insights",
"description": "Microsoft Insights Resource Types",
"resourceDefinitions": {
"workbooks": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2021-08-01"
]
},
"etag": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Resource etag"
},
"identity": {
"oneOf": [
{
"$ref": "#/definitions/WorkbookResourceIdentity"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Identity used for BYOS"
},
"kind": {
"oneOf": [
{
"type": "string",
"enum": [
"user",
"shared"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The kind of workbook. Choices are user and shared."
},
"location": {
"type": "string",
"description": "The geo-location where the resource lives"
},
"name": {
"type": "string",
"description": "The name of the Application Insights component resource."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/WorkbookProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Properties that contain a workbook."
},
"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.Insights/workbooks"
]
}
},
"required": [
"apiVersion",
"location",
"name",
"properties",
"type"
],
"description": "Microsoft.Insights/workbooks"
}
},
"definitions": {
"UserAssignedIdentity": {
"type": "object",
"properties": {},
"description": "User assigned identity properties"
},
"WorkbookProperties": {
"type": "object",
"properties": {
"category": {
"type": "string",
"description": "Workbook category, as defined by the user at creation time."
},
"description": {
"type": "string",
"description": "The description of the workbook."
},
"displayName": {
"type": "string",
"description": "The user-defined name (display name) of the workbook."
},
"serializedData": {
"type": "string",
"description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON"
},
"sourceId": {
"type": "string",
"description": "ResourceId for a source resource."
},
"storageUri": {
"type": "string",
"description": "The resourceId to the storage account when bring your own storage is used"
},
"tags": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Being deprecated, please use the other tags field"
},
"version": {
"type": "string",
"description": "Workbook schema version format, like 'Notebook/1.0', which should match the workbook in serializedData"
}
},
"required": [
"category",
"displayName",
"serializedData"
],
"description": "Properties that contain a workbook."
},
"WorkbookResourceIdentity": {
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "string",
"enum": [
"None",
"SystemAssigned",
"UserAssigned",
"SystemAssigned,UserAssigned"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"userAssignedIdentities": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/UserAssignedIdentity"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests."
}
},
"required": [
"type"
],
"description": "Identity used for BYOS"
}
}
}
3 changes: 3 additions & 0 deletions schemas/common/autogeneratedResources.json
Original file line number Diff line number Diff line change
Expand Up @@ -8290,6 +8290,9 @@
{
"$ref": "https://schema.management.azure.com/schemas/2021-03-08/Microsoft.Insights.Application.json#/resourceDefinitions/workbooks"
},
{
"$ref": "https://schema.management.azure.com/schemas/2021-08-01/Microsoft.Insights.Application.json#/resourceDefinitions/workbooks"
},
{
"$ref": "https://schema.management.azure.com/schemas/2014-04-01/Microsoft.Insights.json#/resourceDefinitions/alertrules"
},
Expand Down