Skip to content

Commit

Permalink
Workbooks correctness (#19984)
Browse files Browse the repository at this point in the history
* Workbooks correctness

* add all types and examples
  • Loading branch information
vutran01 committed Aug 19, 2022
1 parent 59bc7d3 commit c375310
Show file tree
Hide file tree
Showing 7 changed files with 160 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,41 @@
}
},
"responses": {
"200": {
"body": {
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myid": {
"clientId": "00000000-0000-0000-0000-000000000000",
"principalId": "00000000-0000-0000-0000-000000000000"
}
}
},
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/Microsoft.Insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
"name": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
"type": "Microsoft.Insights/workbooks",
"location": "westus",
"tags": {
"TagSample01": "sample01",
"TagSample02": "sample02",
"hidden-title": "Sample workbook"
},
"kind": "shared",
"properties": {
"displayName": "Sample workbook",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text - 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/8980832b-9589-4ac2-b322-a6ae6a97f02b/resourceGroups/my-resource-group\"]}",
"version": "Notebook/1.0",
"category": "workbook",
"userId": "70d90f65-8a70-4e42-b8d5-863725e0a90f",
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group",
"timeModified": "2020-10-20T22:15:08.1875458Z",
"description": "Sample workbook",
"revision": "1e2f8435b98248febee70c64ac22e1bb",
"storageUri": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/mystorage/blobServices/default/containers/mycontainer"
}
}
},
"201": {
"body": {
"identity": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,31 @@
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/Microsoft.Insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
"name": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
"type": "Microsoft.Insights/workbooks",
"location": "westus",
"tags": {
"TagSample01": "sample01",
"TagSample02": "sample02"
},
"kind": "shared",
"properties": {
"displayName": "Sample workbook",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}",
"userId": "userId",
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/MyApp",
"version": "Notebook/1.0",
"category": "workbook",
"timeModified": "2020-10-20T22:00:26.4229554Z",
"storageUri": null,
"description": "Sample workbook",
"revision": "1e2f8435b98248febee70c64ac22e1bb"
}
}
},
"201": {
"body": {
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/Microsoft.Insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,12 @@
}
],
"responses": {
"200": {
"description": "The workbook definition updated.",
"schema": {
"$ref": "#/definitions/Workbook"
}
},
"201": {
"description": "The workbook definition updated.",
"schema": {
Expand Down Expand Up @@ -655,9 +661,7 @@
},
"innerError": {
"description": "Internal error details.",
"items": {
"$ref": "#/definitions/WorkbookInnerErrorTrace"
},
"$ref": "#/definitions/WorkbookInnerErrorTrace",
"readOnly": true
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,41 @@
}
},
"responses": {
"200": {
"body": {
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myid": {
"clientId": "00000000-0000-0000-0000-000000000000",
"principalId": "00000000-0000-0000-0000-000000000000"
}
}
},
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/Microsoft.Insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
"name": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
"type": "Microsoft.Insights/workbooks",
"location": "westus",
"tags": {
"TagSample01": "sample01",
"TagSample02": "sample02",
"hidden-title": "Sample workbook"
},
"kind": "shared",
"properties": {
"displayName": "Sample workbook",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text - 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/8980832b-9589-4ac2-b322-a6ae6a97f02b/resourceGroups/my-resource-group\"]}",
"version": "Notebook/1.0",
"category": "workbook",
"userId": "70d90f65-8a70-4e42-b8d5-863725e0a90f",
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group",
"timeModified": "2020-10-20T22:15:08.1875458Z",
"description": "Sample workbook",
"revision": "1e2f8435b98248febee70c64ac22e1bb",
"storageUri": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/mystorage/blobServices/default/containers/mycontainer"
}
}
},
"201": {
"body": {
"identity": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,31 @@
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/Microsoft.Insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
"name": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
"type": "Microsoft.Insights/workbooks",
"location": "westus",
"tags": {
"TagSample01": "sample01",
"TagSample02": "sample02"
},
"kind": "shared",
"properties": {
"displayName": "Sample workbook",
"serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}",
"userId": "userId",
"sourceId": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/MyApp",
"version": "Notebook/1.0",
"category": "workbook",
"timeModified": "2020-10-20T22:00:26.4229554Z",
"storageUri": null,
"description": "Sample workbook",
"revision": "1e2f8435b98248febee70c64ac22e1bb"
}
}
},
"201": {
"body": {
"id": "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group/providers/Microsoft.Insights/workbooks/deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,12 @@
}
],
"responses": {
"200": {
"description": "The workbook definition updated.",
"schema": {
"$ref": "#/definitions/Workbook"
}
},
"201": {
"description": "The workbook definition updated.",
"schema": {
Expand Down Expand Up @@ -650,9 +656,7 @@
},
"innerError": {
"description": "Internal error details.",
"items": {
"$ref": "#/definitions/WorkbookInnerErrorTrace"
},
"$ref": "#/definitions/WorkbookInnerErrorTrace",
"readOnly": true
}
}
Expand Down
27 changes: 26 additions & 1 deletion specification/applicationinsights/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ These are the global settings for the ApplicationInsights API.
title: ApplicationInsightsManagementClient
description: Composite Swagger for Application Insights Management Client
openapi-type: arm
tag: package-2022-06-15
tag: package-2022-07-27-only
```
### Suppression
Expand Down Expand Up @@ -249,6 +249,31 @@ directive:
reason: Pre-existing error in another API (i.e. this PR did not introduce this issue).
```
### Tag: package-2022-07-27-only
These settings apply only when `--tag=package-2022-07-27-only` is specified on the command line.

``` yaml $(tag) == 'package-2022-07-27-only'
input-file:
- Microsoft.Insights/stable/2020-02-02/components_API.json
- Microsoft.Insights/stable/2015-05-01/componentAnnotations_API.json
- Microsoft.Insights/stable/2015-05-01/componentApiKeys_API.json
- Microsoft.Insights/stable/2015-05-01/componentContinuousExport_API.json
- Microsoft.Insights/stable/2015-05-01/componentFeaturesAndPricing_API.json
- Microsoft.Insights/stable/2015-05-01/componentProactiveDetection_API.json
- Microsoft.Insights/stable/2015-05-01/componentWorkItemConfigs_API.json
- Microsoft.Insights/stable/2015-05-01/favorites_API.json
- Microsoft.Insights/stable/2015-05-01/webTestLocations_API.json
- Microsoft.Insights/stable/2022-06-15/webTests_API.json
- Microsoft.Insights/stable/2015-05-01/analyticsItems_API.json
- Microsoft.Insights/stable/2021-03-08/workbookOperations_API.json
- Microsoft.Insights/stable/2020-11-20/workbookTemplates_API.json
- Microsoft.Insights/stable/2021-03-08/myworkbooks_API.json
- Microsoft.Insights/stable/2022-04-01/workbooks_API.json
- Microsoft.Insights/stable/2021-10-14/livetoken_API.json
- Microsoft.Insights/preview/2020-03-01-preview/componentLinkedStorageAccounts_API.json
```

### Tag: package-2022-06-15

These settings apply only when `--tag=package-2022-06-15` is specified on the command line.
Expand Down

0 comments on commit c375310

Please sign in to comment.