From eb38dfb11ce4b0c6be5838c0dfc05dc0b5782180 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Wed, 14 Mar 2018 13:14:26 -0700 Subject: [PATCH 01/50] Added Swagger entry for Workbook resource --- .../2015-05-01/examples/WorkbookAdd.json | 50 +++ .../2015-05-01/examples/WorkbookGet.json | 40 ++ .../examples/WorkbookOKResponse.json | 27 ++ .../2015-05-01/examples/WorkbookUpdate.json | 53 +++ .../2015-05-01/examples/WorkbooksList.json | 49 ++ .../2015-05-01/linkedWorkbooks_API.json | 344 +++++++++++++++ .../stable/2015-05-01/workbooks_API.json | 417 ++++++++++++++++++ 7 files changed, 980 insertions(+) create mode 100644 specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json create mode 100644 specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json create mode 100644 specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookOKResponse.json create mode 100644 specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json create mode 100644 specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json create mode 100644 specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json create mode 100644 specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json new file mode 100644 index 000000000000..32bba81c8a63 --- /dev/null +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "subscriptionId": "subid", + "workbookProperties": { + "name": "Blah Blah Blah", + "serialziedData": "{\"MEDataModelRawJSON\":\"{\\n \\\"version\\\": \\\"1.4.1\\\",\\n \\\"isCustomDataModel\\\": true,\\n \\\"items\\\": [\\n {\\n \\\"id\\\": \\\"90a7134d-9a38-4c25-88d3-a495209873eb\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Sum\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"fail\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"0c289098-88e8-4010-b212-546815cddf70\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 2,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-j1\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"greenHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"cbdaab6f-a808-4f71-aca5-b3976cbb7345\\\",\\n \\\"chartType\\\": \\\"Bar\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"magentaHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"1d5a6a3a-9fa1-4099-9cf9-05eff72d1b02\\\",\\n \\\"grouping\\\": {\\n \\\"kind\\\": \\\"ByDimension\\\",\\n \\\"dimension\\\": \\\"context.application.version\\\"\\n },\\n \\\"chartType\\\": \\\"Grid\\\",\\n \\\"chartHeight\\\": 1,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"basicException.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-g0\\\"\\n },\\n {\\n \\\"id\\\": \\\"requestFailed.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-f0s2\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": true,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"blueHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n }\\n ],\\n \\\"currentFilter\\\": {\\n \\\"eventTypes\\\": [\\n 1,\\n 2\\n ],\\n \\\"typeFacets\\\": {},\\n \\\"isPermissive\\\": false\\n },\\n \\\"timeContext\\\": {\\n \\\"durationMs\\\": 75600000,\\n \\\"endTime\\\": \\\"2018-01-31T20:30:00.000Z\\\",\\n \\\"createdTime\\\": \\\"2018-01-31T23:54:26.280Z\\\",\\n \\\"isInitialTime\\\": false,\\n \\\"grain\\\": 1,\\n \\\"useDashboardTimeRange\\\": false\\n },\\n \\\"jsonUri\\\": \\\"Favorite_BlankChart\\\",\\n \\\"timeSource\\\": 0\\n}\"}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "sharedType": "shared", + "category": "workbook", + "timeModified": null, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + }, + "responses": { + "200": { + "body": { + "name": "Blah Blah Blah", + "serialziedData": "{\"MEDataModelRawJSON\":\"{\\n \\\"version\\\": \\\"1.4.1\\\",\\n \\\"isCustomDataModel\\\": true,\\n \\\"items\\\": [\\n {\\n \\\"id\\\": \\\"90a7134d-9a38-4c25-88d3-a495209873eb\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Sum\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"fail\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"0c289098-88e8-4010-b212-546815cddf70\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 2,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-j1\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"greenHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"cbdaab6f-a808-4f71-aca5-b3976cbb7345\\\",\\n \\\"chartType\\\": \\\"Bar\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"magentaHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"1d5a6a3a-9fa1-4099-9cf9-05eff72d1b02\\\",\\n \\\"grouping\\\": {\\n \\\"kind\\\": \\\"ByDimension\\\",\\n \\\"dimension\\\": \\\"context.application.version\\\"\\n },\\n \\\"chartType\\\": \\\"Grid\\\",\\n \\\"chartHeight\\\": 1,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"basicException.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-g0\\\"\\n },\\n {\\n \\\"id\\\": \\\"requestFailed.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-f0s2\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": true,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"blueHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n }\\n ],\\n \\\"currentFilter\\\": {\\n \\\"eventTypes\\\": [\\n 1,\\n 2\\n ],\\n \\\"typeFacets\\\": {},\\n \\\"isPermissive\\\": false\\n },\\n \\\"timeContext\\\": {\\n \\\"durationMs\\\": 75600000,\\n \\\"endTime\\\": \\\"2018-01-31T20:30:00.000Z\\\",\\n \\\"createdTime\\\": \\\"2018-01-31T23:54:26.280Z\\\",\\n \\\"isInitialTime\\\": false,\\n \\\"grain\\\": 1,\\n \\\"useDashboardTimeRange\\\": false\\n },\\n \\\"jsonUri\\\": \\\"Favorite_BlankChart\\\",\\n \\\"timeSource\\\": 0\\n}\"}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "sharedType": "shared", + "category": "workbook", + "timeModified": null, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + }, + "400": { + "description": "Bad Request.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error defintion specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json new file mode 100644 index 000000000000..881eacb812da --- /dev/null +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" + }, + "responses": { + "200": { + "body": { + "name": "Blah Blah Blah", + "serialziedData": "{\"MEDataModelRawJSON\":\"{\\n \\\"version\\\": \\\"1.4.1\\\",\\n \\\"isCustomDataModel\\\": true,\\n \\\"items\\\": [\\n {\\n \\\"id\\\": \\\"90a7134d-9a38-4c25-88d3-a495209873eb\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Sum\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"fail\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"0c289098-88e8-4010-b212-546815cddf70\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 2,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-j1\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"greenHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"cbdaab6f-a808-4f71-aca5-b3976cbb7345\\\",\\n \\\"chartType\\\": \\\"Bar\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"magentaHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"1d5a6a3a-9fa1-4099-9cf9-05eff72d1b02\\\",\\n \\\"grouping\\\": {\\n \\\"kind\\\": \\\"ByDimension\\\",\\n \\\"dimension\\\": \\\"context.application.version\\\"\\n },\\n \\\"chartType\\\": \\\"Grid\\\",\\n \\\"chartHeight\\\": 1,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"basicException.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-g0\\\"\\n },\\n {\\n \\\"id\\\": \\\"requestFailed.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-f0s2\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": true,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"blueHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n }\\n ],\\n \\\"currentFilter\\\": {\\n \\\"eventTypes\\\": [\\n 1,\\n 2\\n ],\\n \\\"typeFacets\\\": {},\\n \\\"isPermissive\\\": false\\n },\\n \\\"timeContext\\\": {\\n \\\"durationMs\\\": 75600000,\\n \\\"endTime\\\": \\\"2018-01-31T20:30:00.000Z\\\",\\n \\\"createdTime\\\": \\\"2018-01-31T23:54:26.280Z\\\",\\n \\\"isInitialTime\\\": false,\\n \\\"grain\\\": 1,\\n \\\"useDashboardTimeRange\\\": false\\n },\\n \\\"jsonUri\\\": \\\"Favorite_BlankChart\\\",\\n \\\"timeSource\\\": 0\\n}\"}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "sharedType": "shared", + "category": "workbook", + "timeModified": null, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + }, + "400": { + "description": "Bad Request.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Resource Not Found." + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error defintion specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookOKResponse.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookOKResponse.json new file mode 100644 index 000000000000..a472ac1c9aed --- /dev/null +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookOKResponse.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" + }, + "responses": { + "200": { + }, + "400": { + "description": "Bad Request.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Resource Not Found." + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error defintion specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json new file mode 100644 index 000000000000..7207e7cb8bac --- /dev/null +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "workbookProperties": { + "name": "Blah Blah Blah", + "serialziedData": "{\"MEDataModelRawJSON\":\"{\\n \\\"version\\\": \\\"1.4.1\\\",\\n \\\"isCustomDataModel\\\": true,\\n \\\"items\\\": [\\n {\\n \\\"id\\\": \\\"90a7134d-9a38-4c25-88d3-a495209873eb\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Sum\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"fail\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"0c289098-88e8-4010-b212-546815cddf70\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 2,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-j1\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"greenHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"cbdaab6f-a808-4f71-aca5-b3976cbb7345\\\",\\n \\\"chartType\\\": \\\"Bar\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"magentaHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"1d5a6a3a-9fa1-4099-9cf9-05eff72d1b02\\\",\\n \\\"grouping\\\": {\\n \\\"kind\\\": \\\"ByDimension\\\",\\n \\\"dimension\\\": \\\"context.application.version\\\"\\n },\\n \\\"chartType\\\": \\\"Grid\\\",\\n \\\"chartHeight\\\": 1,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"basicException.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-g0\\\"\\n },\\n {\\n \\\"id\\\": \\\"requestFailed.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-f0s2\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": true,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"blueHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n }\\n ],\\n \\\"currentFilter\\\": {\\n \\\"eventTypes\\\": [\\n 1,\\n 2\\n ],\\n \\\"typeFacets\\\": {},\\n \\\"isPermissive\\\": false\\n },\\n \\\"timeContext\\\": {\\n \\\"durationMs\\\": 75600000,\\n \\\"endTime\\\": \\\"2018-01-31T20:30:00.000Z\\\",\\n \\\"createdTime\\\": \\\"2018-01-31T23:54:26.280Z\\\",\\n \\\"isInitialTime\\\": false,\\n \\\"grain\\\": 1,\\n \\\"useDashboardTimeRange\\\": false\\n },\\n \\\"jsonUri\\\": \\\"Favorite_BlankChart\\\",\\n \\\"timeSource\\\": 0\\n}\"}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "sharedType": "shared", + "category": "workbook", + "timeModified": null, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + }, + "responses": { + "200": { + "body": { + "name": "Blah Blah Blah", + "serialziedData": "{\"MEDataModelRawJSON\":\"{\\n \\\"version\\\": \\\"1.4.1\\\",\\n \\\"isCustomDataModel\\\": true,\\n \\\"items\\\": [\\n {\\n \\\"id\\\": \\\"90a7134d-9a38-4c25-88d3-a495209873eb\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Sum\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"fail\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"0c289098-88e8-4010-b212-546815cddf70\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 2,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-j1\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"greenHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"cbdaab6f-a808-4f71-aca5-b3976cbb7345\\\",\\n \\\"chartType\\\": \\\"Bar\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"magentaHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"1d5a6a3a-9fa1-4099-9cf9-05eff72d1b02\\\",\\n \\\"grouping\\\": {\\n \\\"kind\\\": \\\"ByDimension\\\",\\n \\\"dimension\\\": \\\"context.application.version\\\"\\n },\\n \\\"chartType\\\": \\\"Grid\\\",\\n \\\"chartHeight\\\": 1,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"basicException.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-g0\\\"\\n },\\n {\\n \\\"id\\\": \\\"requestFailed.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-f0s2\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": true,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"blueHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n }\\n ],\\n \\\"currentFilter\\\": {\\n \\\"eventTypes\\\": [\\n 1,\\n 2\\n ],\\n \\\"typeFacets\\\": {},\\n \\\"isPermissive\\\": false\\n },\\n \\\"timeContext\\\": {\\n \\\"durationMs\\\": 75600000,\\n \\\"endTime\\\": \\\"2018-01-31T20:30:00.000Z\\\",\\n \\\"createdTime\\\": \\\"2018-01-31T23:54:26.280Z\\\",\\n \\\"isInitialTime\\\": false,\\n \\\"grain\\\": 1,\\n \\\"useDashboardTimeRange\\\": false\\n },\\n \\\"jsonUri\\\": \\\"Favorite_BlankChart\\\",\\n \\\"timeSource\\\": 0\\n}\"}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "sharedType": "shared", + "category": "workbook", + "timeModified": null, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + }, + "400": { + "description": "Bad Request.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Resource Not Found." + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error defintion specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json new file mode 100644 index 000000000000..b842c2737f38 --- /dev/null +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "category": "workbook" + }, + "responses": { + "200": { + "body": [ + { + "name": "Example Metric Chart Favorite", + "serializedData": "blah blah", + "version": "ME", + "workbookId": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "sharedType": "shared", + "timeModified": "2018-01-31T23:56:16.008902Z", + "tags": [], + "category": "workbook" + }, + { + "name": "Example Search Blade Favorite", + "serializedData": "{\"TimeSelection\":{\"durationMs\":1800000,\"endTime\":\"2018-01-31T23:56:15.493Z\",\"createdTime\":\"Wed Jan 31 2018 15:58:36 GMT-0800 (Pacific Standard Time)\",\"isInitialTime\":false,\"grain\":1,\"useDashboardTimeRange\":false},\"SearchFilter\":{\"eventTypes\":[1,2],\"typeFacets\":{},\"isPermissive\":false},\"QueryText\":\"*\",\"partId\":\"99e33a16-1b00-4a7d-b98f-a3c1bb3a4df8\"}", + "version": "Search", + "workbookId": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "sharedType": "shared", + "timeModified": "2018-01-31T23:59:25.4594264Z", + "tags": ["SampleTag01", "SampleTag2"], + "category": "workbook" + } + ] + }, + "400": { + "description": "Bad Request.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Resource Not Found." + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error defintion specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json new file mode 100644 index 000000000000..918fd020f0f3 --- /dev/null +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json @@ -0,0 +1,344 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationInsightsManagementClient", + "description": "Azure Application Insights workbook type.", + "version": "2015-05-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/microsoft.insights/workbooks/category/{category}": { + "get": { + "description": "Gets a list of workbooks.", + "operationId": "Workbooks_ListBySourceId", + "parameters": [ + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/CategoryParameter" + }, + { + "$ref": "#/parameters/TagsParameter" + }, + { + "$ref": "#/parameters/CanFetchWorkbookContentParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more workbook definitions.", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Workbook" + } + } + } + }, + "x-ms-examples": { + "WorkbooksList": { + "$ref": "./examples/WorkbooksList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroup}/resourceName/{resourceName}/providers/microsoft.insights/workbooks": { + "put": { + "description": "Create a new workbook.", + "operationId": "Workbook_CreateLink", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The link has been created.", + "schema": { + "$ref": "#/definitions/Workbook" + } + } + }, + "x-ms-examples": { + "WorkbookAdd": { + "$ref": "./examples/WorkbookOKResponse.json" + } + } + }, + "patch": { + "description": "Updates a workbook that has already been added.", + "operationId": "Workbook_UpdateLink", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The workbook definition updated.", + "schema": { + "$ref": "#/definitions/Workbook" + } + } + }, + "x-ms-examples": { + "WorkbookAdd": { + "$ref": "./examples/WorkbookOKResponse.json" + } + } + }, + "delete": { + "description": "Delete a workbook.", + "operationId": "Workbook_DeleteLink", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + } + ], + "responses": { + "200": { + "description": "The workbook link has been successfully deleted." + } + }, + "x-ms-examples": { + "WorkbookList": { + "$ref": "./examples/WorkbookOKResponse.json" + } + } + } + } + }, + "definitions": { + "Workbook": { + "description": "An Application Insights workbook definition.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "kind": { + "type": "string", + "description": "The kind of workbook. Choices are user and shared.", + "default": "shared", + "enum": [ + "user", + "shared" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": false + } + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Metadata describing a web test for an Azure resource.", + "$ref": "#/definitions/Workbook" + } + } + }, + "WorkbookProperties": { + "description": "Properties that contain a workbook.", + "required": [ + "name", + "kind", + "category", + "workbookId", + "serializedData", + "userId" + ], + "properties": { + "name": { + "type": "string", + "description": "The user-defined name of the workbook." + }, + "serializedData": { + "type": "string", + "description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON" + }, + "version": { + "type": "string", + "description": "This instance's version of the data model. This can change as new features are added that can be marked workbook." + }, + "workbookId": { + "type": "string", + "description": "Internally assigned unique id of the workbook definition. This will be a resource name.", + "readOnly": true + }, + "kind": { + "description": "Enum indicating if this workbook definition is owned by a specific user or is shared between all users with access to the Application Insights component.", + "x-ms-client-name": "SharedTypeKind", + "default": "shared", + "type": "string", + "enum": [ + "shared", + "user" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": false + } + }, + "timeModified": { + "type": "string", + "description": "Date and time in UTC of the last modification that was made to this workbook definition.", + "readOnly": true + }, + "category": { + "type": "string", + "description": "Workbook category, as defined by the user at creation time." + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of 0 or more tags that are associated with this workbook definition" + }, + "userId": { + "type": "string", + "readOnly": true, + "description": "Unique user id of the specific user that owns this workbook." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of Azure resource group.", + "x-ms-parameter-location": "method" + }, + "ResourceNameParameter": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of Azure resource.", + "x-ms-parameter-location": "method" + }, + "SourceIdParameter": { + "name": "sourceId", + "in": "query", + "required": true, + "type": "string", + "description": "Azure Resource Id that will fetch all linked workbooks." + }, + "CategoryParameter": { + "name": "category", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "workbook", + "TSG", + "performance", + "retention" + ], + "x-ms-enum": { + "name": "CategoryType", + "modelAsString": true + }, + "description": "Category of workbook to return. When left out, the source type defaults to 'other' (not present in this enum).", + "x-ms-parameter-location": "method" + }, + "CanFetchWorkbookContentParameter": { + "name": "canFetchContent", + "in": "query", + "required": false, + "type": "boolean", + "description": "Flag indicating whether or not to return the full content for each applicable workbook. If false, only return summary content for workbooks.", + "x-ms-parameter-location": "method" + }, + "TagsParameter": { + "name": "tags", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv", + "description": "Tags presents on each workbook returned.", + "x-ms-parameter-location": "method" + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json new file mode 100644 index 000000000000..aadfcefd1aa9 --- /dev/null +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json @@ -0,0 +1,417 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationInsightsManagementClient", + "description": "Azure Application Insights workbook type.", + "version": "2015-05-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroup}/providers/microsoft.insights/workbooks/category/{category}": { + "get": { + "description": "Gets a list of workbooks.", + "operationId": "Workbooks_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/CategoryParameter" + }, + { + "$ref": "#/parameters/TagsParameter" + }, + { + "$ref": "#/parameters/CanFetchWorkbookContentParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more workbook definitions.", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Workbook" + } + } + } + }, + "x-ms-examples": { + "WorkbooksList": { + "$ref": "./examples/WorkbooksList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroup}/resourceName/{resourceName}/providers/microsoft.insights/workbooks": { + "get": { + "description": "Get a single workbook by its resourceName.", + "operationId": "Workbook_GetByResourceName", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A workbook definition.", + "schema": { + "$ref": "#/definitions/Workbook" + } + } + }, + "x-ms-examples": { + "WorkbookGet": { + "$ref": "./examples/WorkbookGet.json" + } + } + }, + "put": { + "description": "Create a new workbook.", + "operationId": "Workbook_Create", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "WorkbookRequest", + "description": "Properties that need to be specified to create a new workbook.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WorkbookRequest" + } + } + ], + "responses": { + "200": { + "description": "The newly created workbook.", + "schema": { + "$ref": "#/definitions/Workbook" + } + } + }, + "x-ms-examples": { + "WorkbookAdd": { + "$ref": "./examples/WorkbookAdd.json" + } + } + }, + "patch": { + "description": "Updates a workbook that has already been added.", + "operationId": "Workbook_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "WorkbookRequest", + "description": "Properties that need to be specified to create a new workbook.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WorkbookRequest" + } + } + ], + "responses": { + "200": { + "description": "The workbook definition updated.", + "schema": { + "$ref": "#/definitions/Workbook" + } + } + }, + "x-ms-examples": { + "WorkbookList": { + "$ref": "./examples/WorkbookUpdate.json" + } + } + }, + "delete": { + "description": "Delete a workbook.", + "operationId": "Workbook_Delete", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The workbook has been successfully deleted." + } + }, + "x-ms-examples": { + "WorkbookList": { + "$ref": "./examples/WorkbookOKResponse.json" + } + } + } + } + }, + "definitions": { + "WorkbookRequest": { + "description": "Properties that contain a workbook.", + "properties": { + "sourceResourceId": { + "type": "string", + "description": "The source resource Id that will be used to link with a workbook resource when specified." + }, + "workbook": { + "type": "object", + "$ref": "#/definitions/Workbook", + "description": "Properties that define a workbook." + } + } + }, + "Workbook": { + "description": "An Application Insights workbook definition.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "kind": { + "type": "string", + "description": "The kind of workbook. Choices are user and shared.", + "default": "shared", + "enum": [ + "user", + "shared" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": false + } + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Metadata describing a web test for an Azure resource.", + "$ref": "#/definitions/Workbook" + } + } + }, + "WorkbookProperties": { + "description": "Properties that contain a workbook.", + "required": [ + "name", + "kind", + "category", + "workbookId", + "serializedData", + "userId" + ], + "properties": { + "name": { + "type": "string", + "description": "The user-defined name of the workbook." + }, + "serializedData": { + "type": "string", + "description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON" + }, + "version": { + "type": "string", + "description": "This instance's version of the data model. This can change as new features are added that can be marked workbook." + }, + "workbookId": { + "type": "string", + "description": "Internally assigned unique id of the workbook definition.", + "readOnly": true + }, + "kind": { + "description": "Enum indicating if this workbook definition is owned by a specific user or is shared between all users with access to the Application Insights component.", + "x-ms-client-name": "SharedTypeKind", + "default": "shared", + "type": "string", + "enum": [ + "shared", + "user" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": false + } + }, + "timeModified": { + "type": "string", + "description": "Date and time in UTC of the last modification that was made to this workbook definition.", + "readOnly": true + }, + "category": { + "type": "string", + "description": "Workbook category, as defined by the user at creation time." + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of 0 or more tags that are associated with this workbook definition" + }, + "userId": { + "type": "string", + "readOnly": true, + "description": "Unique user id of the specific user that owns this workbook." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ResourceNameParameter": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Application Insights workbook resource.", + "x-ms-parameter-location": "method" + }, + "SharedTypeParameter": { + "name": "sharedType", + "in": "query", + "required": false, + "type": "string", + "default": "shared", + "enum": [ + "shared", + "user" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": false + }, + "description": "The type of workbook that will be used for a saved item. Value can be either shared or user. If not specified, 'shared' will be assigned.", + "x-ms-parameter-location": "method" + }, + "CategoryParameter": { + "name": "category", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "workbook", + "TSG", + "performance", + "retention" + ], + "x-ms-enum": { + "name": "CategoryType", + "modelAsString": true + }, + "description": "Category of workbook to return.", + "x-ms-parameter-location": "method" + }, + "CanFetchWorkbookContentParameter": { + "name": "canFetchContent", + "in": "query", + "required": false, + "type": "boolean", + "description": "Flag indicating whether or not to return the full content for each applicable workbook. If false, only return summary content for workbooks.", + "x-ms-parameter-location": "method" + }, + "TagsParameter": { + "name": "tags", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv", + "description": "Tags presents on each workbook returned.", + "x-ms-parameter-location": "method" + } + } +} \ No newline at end of file From ea82a680cc8c64dab1a0bc1a386628afc0cf6bd9 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Wed, 14 Mar 2018 14:21:34 -0700 Subject: [PATCH 02/50] Fixed all example related errors. --- .../2015-05-01/examples/WorkbookAdd.json | 28 ++++--- .../2015-05-01/examples/WorkbookGet.json | 2 +- .../examples/WorkbookOKResponse.json | 27 ------ .../2015-05-01/examples/WorkbookUpdate.json | 4 +- .../2015-05-01/examples/WorkbooksList.json | 10 +-- .../2015-05-01/linkedWorkbooks_API.json | 83 ++++++++++++++---- .../stable/2015-05-01/workbooks_API.json | 84 +++++++++++++++++-- 7 files changed, 169 insertions(+), 69 deletions(-) delete mode 100644 specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookOKResponse.json diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json index 32bba81c8a63..6fd88c0a3457 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json @@ -4,18 +4,22 @@ "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", "subscriptionId": "subid", - "workbookProperties": { - "name": "Blah Blah Blah", - "serialziedData": "{\"MEDataModelRawJSON\":\"{\\n \\\"version\\\": \\\"1.4.1\\\",\\n \\\"isCustomDataModel\\\": true,\\n \\\"items\\\": [\\n {\\n \\\"id\\\": \\\"90a7134d-9a38-4c25-88d3-a495209873eb\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Sum\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"fail\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"0c289098-88e8-4010-b212-546815cddf70\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 2,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-j1\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"greenHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"cbdaab6f-a808-4f71-aca5-b3976cbb7345\\\",\\n \\\"chartType\\\": \\\"Bar\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"magentaHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"1d5a6a3a-9fa1-4099-9cf9-05eff72d1b02\\\",\\n \\\"grouping\\\": {\\n \\\"kind\\\": \\\"ByDimension\\\",\\n \\\"dimension\\\": \\\"context.application.version\\\"\\n },\\n \\\"chartType\\\": \\\"Grid\\\",\\n \\\"chartHeight\\\": 1,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"basicException.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-g0\\\"\\n },\\n {\\n \\\"id\\\": \\\"requestFailed.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-f0s2\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": true,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"blueHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n }\\n ],\\n \\\"currentFilter\\\": {\\n \\\"eventTypes\\\": [\\n 1,\\n 2\\n ],\\n \\\"typeFacets\\\": {},\\n \\\"isPermissive\\\": false\\n },\\n \\\"timeContext\\\": {\\n \\\"durationMs\\\": 75600000,\\n \\\"endTime\\\": \\\"2018-01-31T20:30:00.000Z\\\",\\n \\\"createdTime\\\": \\\"2018-01-31T23:54:26.280Z\\\",\\n \\\"isInitialTime\\\": false,\\n \\\"grain\\\": 1,\\n \\\"useDashboardTimeRange\\\": false\\n },\\n \\\"jsonUri\\\": \\\"Favorite_BlankChart\\\",\\n \\\"timeSource\\\": 0\\n}\"}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "sharedType": "shared", - "category": "workbook", - "timeModified": null, - "tags": [ - "TagSample01", - "TagSample02" - ] + "WorkbookRequest": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "workbook": { + "name": "Blah Blah Blah", + "serialziedData": "{\"MEDataModelRawJSON\":\"{\\n \\\"version\\\": \\\"1.4.1\\\",\\n \\\"isCustomDataModel\\\": true,\\n \\\"items\\\": [\\n {\\n \\\"id\\\": \\\"90a7134d-9a38-4c25-88d3-a495209873eb\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Sum\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"fail\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"0c289098-88e8-4010-b212-546815cddf70\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 2,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-j1\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"greenHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"cbdaab6f-a808-4f71-aca5-b3976cbb7345\\\",\\n \\\"chartType\\\": \\\"Bar\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"magentaHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"1d5a6a3a-9fa1-4099-9cf9-05eff72d1b02\\\",\\n \\\"grouping\\\": {\\n \\\"kind\\\": \\\"ByDimension\\\",\\n \\\"dimension\\\": \\\"context.application.version\\\"\\n },\\n \\\"chartType\\\": \\\"Grid\\\",\\n \\\"chartHeight\\\": 1,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"basicException.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-g0\\\"\\n },\\n {\\n \\\"id\\\": \\\"requestFailed.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-f0s2\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": true,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"blueHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n }\\n ],\\n \\\"currentFilter\\\": {\\n \\\"eventTypes\\\": [\\n 1,\\n 2\\n ],\\n \\\"typeFacets\\\": {},\\n \\\"isPermissive\\\": false\\n },\\n \\\"timeContext\\\": {\\n \\\"durationMs\\\": 75600000,\\n \\\"endTime\\\": \\\"2018-01-31T20:30:00.000Z\\\",\\n \\\"createdTime\\\": \\\"2018-01-31T23:54:26.280Z\\\",\\n \\\"isInitialTime\\\": false,\\n \\\"grain\\\": 1,\\n \\\"useDashboardTimeRange\\\": false\\n },\\n \\\"jsonUri\\\": \\\"Favorite_BlankChart\\\",\\n \\\"timeSource\\\": 0\\n}\"}", + "version": "ME", + "kind": "shared", + "category": "workbook", + "timeModified": null, + "userId": "57af263f-ae5e-46ea-9442-e0bcaff3e7f6", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": [ + "TagSample01", + "TagSample02" + ] + } } }, "responses": { diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json index 881eacb812da..68c88fd49e4d 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2015-05-01", "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", + "resourceGroup": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" }, "responses": { diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookOKResponse.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookOKResponse.json deleted file mode 100644 index a472ac1c9aed..000000000000 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookOKResponse.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" - }, - "responses": { - "200": { - }, - "400": { - "description": "Bad Request.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Resource Not Found." - }, - "default": { - "description": "Default Response. It will be deserialized as per the Error defintion specified in the schema. Exception will be thrown.", - "schema": { - "$ref": "#/definitions/Error" - } - } - } -} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json index 7207e7cb8bac..3707920ab9bb 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json @@ -9,7 +9,7 @@ "serialziedData": "{\"MEDataModelRawJSON\":\"{\\n \\\"version\\\": \\\"1.4.1\\\",\\n \\\"isCustomDataModel\\\": true,\\n \\\"items\\\": [\\n {\\n \\\"id\\\": \\\"90a7134d-9a38-4c25-88d3-a495209873eb\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Sum\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"fail\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"0c289098-88e8-4010-b212-546815cddf70\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 2,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-j1\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"greenHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"cbdaab6f-a808-4f71-aca5-b3976cbb7345\\\",\\n \\\"chartType\\\": \\\"Bar\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"magentaHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"1d5a6a3a-9fa1-4099-9cf9-05eff72d1b02\\\",\\n \\\"grouping\\\": {\\n \\\"kind\\\": \\\"ByDimension\\\",\\n \\\"dimension\\\": \\\"context.application.version\\\"\\n },\\n \\\"chartType\\\": \\\"Grid\\\",\\n \\\"chartHeight\\\": 1,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"basicException.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-g0\\\"\\n },\\n {\\n \\\"id\\\": \\\"requestFailed.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-f0s2\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": true,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"blueHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n }\\n ],\\n \\\"currentFilter\\\": {\\n \\\"eventTypes\\\": [\\n 1,\\n 2\\n ],\\n \\\"typeFacets\\\": {},\\n \\\"isPermissive\\\": false\\n },\\n \\\"timeContext\\\": {\\n \\\"durationMs\\\": 75600000,\\n \\\"endTime\\\": \\\"2018-01-31T20:30:00.000Z\\\",\\n \\\"createdTime\\\": \\\"2018-01-31T23:54:26.280Z\\\",\\n \\\"isInitialTime\\\": false,\\n \\\"grain\\\": 1,\\n \\\"useDashboardTimeRange\\\": false\\n },\\n \\\"jsonUri\\\": \\\"Favorite_BlankChart\\\",\\n \\\"timeSource\\\": 0\\n}\"}", "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "sharedType": "shared", + "kind": "shared", "category": "workbook", "timeModified": null, "tags": [ @@ -25,7 +25,7 @@ "serialziedData": "{\"MEDataModelRawJSON\":\"{\\n \\\"version\\\": \\\"1.4.1\\\",\\n \\\"isCustomDataModel\\\": true,\\n \\\"items\\\": [\\n {\\n \\\"id\\\": \\\"90a7134d-9a38-4c25-88d3-a495209873eb\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Sum\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"fail\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"0c289098-88e8-4010-b212-546815cddf70\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 2,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-j1\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"greenHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"cbdaab6f-a808-4f71-aca5-b3976cbb7345\\\",\\n \\\"chartType\\\": \\\"Bar\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"magentaHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"1d5a6a3a-9fa1-4099-9cf9-05eff72d1b02\\\",\\n \\\"grouping\\\": {\\n \\\"kind\\\": \\\"ByDimension\\\",\\n \\\"dimension\\\": \\\"context.application.version\\\"\\n },\\n \\\"chartType\\\": \\\"Grid\\\",\\n \\\"chartHeight\\\": 1,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"basicException.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-g0\\\"\\n },\\n {\\n \\\"id\\\": \\\"requestFailed.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-f0s2\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": true,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"blueHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n }\\n ],\\n \\\"currentFilter\\\": {\\n \\\"eventTypes\\\": [\\n 1,\\n 2\\n ],\\n \\\"typeFacets\\\": {},\\n \\\"isPermissive\\\": false\\n },\\n \\\"timeContext\\\": {\\n \\\"durationMs\\\": 75600000,\\n \\\"endTime\\\": \\\"2018-01-31T20:30:00.000Z\\\",\\n \\\"createdTime\\\": \\\"2018-01-31T23:54:26.280Z\\\",\\n \\\"isInitialTime\\\": false,\\n \\\"grain\\\": 1,\\n \\\"useDashboardTimeRange\\\": false\\n },\\n \\\"jsonUri\\\": \\\"Favorite_BlankChart\\\",\\n \\\"timeSource\\\": 0\\n}\"}", "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "sharedType": "shared", + "kind": "shared", "category": "workbook", "timeModified": null, "tags": [ diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json index b842c2737f38..85c28535ccb6 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json @@ -2,28 +2,28 @@ "parameters": { "api-version": "2015-05-01", "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", + "resourceGroup": "my-resource-group", "category": "workbook" }, "responses": { "200": { "body": [ { - "name": "Example Metric Chart Favorite", + "name": "My Workbook 1", "serializedData": "blah blah", "version": "ME", "workbookId": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "sharedType": "shared", + "kind": "shared", "timeModified": "2018-01-31T23:56:16.008902Z", "tags": [], "category": "workbook" }, { - "name": "Example Search Blade Favorite", + "name": "My Workbook 2", "serializedData": "{\"TimeSelection\":{\"durationMs\":1800000,\"endTime\":\"2018-01-31T23:56:15.493Z\",\"createdTime\":\"Wed Jan 31 2018 15:58:36 GMT-0800 (Pacific Standard Time)\",\"isInitialTime\":false,\"grain\":1,\"useDashboardTimeRange\":false},\"SearchFilter\":{\"eventTypes\":[1,2],\"typeFacets\":{},\"isPermissive\":false},\"QueryText\":\"*\",\"partId\":\"99e33a16-1b00-4a7d-b98f-a3c1bb3a4df8\"}", "version": "Search", "workbookId": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", - "sharedType": "shared", + "kind": "shared", "timeModified": "2018-01-31T23:59:25.4594264Z", "tags": ["SampleTag01", "SampleTag2"], "category": "workbook" diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json index 918fd020f0f3..a7c9f8828783 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json @@ -61,11 +61,26 @@ "$ref": "#/definitions/Workbook" } } - } + }, + "400": { + "description": "Bad Request.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Resource Not Found." + }, + "default": { + "description": "Default Response.", + "schema": { + "$ref": "#/definitions/Error" + } + } }, "x-ms-examples": { "WorkbooksList": { - "$ref": "./examples/WorkbooksList.json" + "$ref": "./examples/WorkbooksListLink.json" } } } @@ -93,15 +108,24 @@ ], "responses": { "200": { - "description": "The link has been created.", - "schema": { - "$ref": "#/definitions/Workbook" - } - } + "description": "The link has been created." + }, + "400": { + "description": "Bad Request.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "Default Response.", + "schema": { + "$ref": "#/definitions/Error" + } + } }, "x-ms-examples": { "WorkbookAdd": { - "$ref": "./examples/WorkbookOKResponse.json" + "$ref": "./examples/WorkbookResponseOnly.json" } } }, @@ -127,15 +151,27 @@ ], "responses": { "200": { - "description": "The workbook definition updated.", - "schema": { - "$ref": "#/definitions/Workbook" - } - } + "description": "The workbook definition updated." + }, + "400": { + "description": "Bad Request.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Resource Not Found." + }, + "default": { + "description": "Default Response.", + "schema": { + "$ref": "#/definitions/Error" + } + } }, "x-ms-examples": { "WorkbookAdd": { - "$ref": "./examples/WorkbookOKResponse.json" + "$ref": "./examples/WorkbookResponseOnly.json" } } }, @@ -159,11 +195,26 @@ "responses": { "200": { "description": "The workbook link has been successfully deleted." - } + }, + "400": { + "description": "Bad Request.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Resource Not Found." + }, + "default": { + "description": "Default Response.", + "schema": { + "$ref": "#/definitions/Error" + } + } }, "x-ms-examples": { "WorkbookList": { - "$ref": "./examples/WorkbookOKResponse.json" + "$ref": "./examples/WorkbookResponseOnly.json" } } } diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json index aadfcefd1aa9..4ac3d1049bba 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json @@ -67,7 +67,22 @@ "$ref": "#/definitions/Workbook" } } - } + }, + "400": { + "description": "Bad Request.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Resource Not Found." + }, + "default": { + "description": "Default Response.", + "schema": { + "$ref": "#/definitions/Error" + } + } }, "x-ms-examples": { "WorkbooksList": { @@ -100,7 +115,22 @@ "schema": { "$ref": "#/definitions/Workbook" } - } + }, + "400": { + "description": "Bad Request.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Resource Not Found." + }, + "default": { + "description": "Default Response.", + "schema": { + "$ref": "#/definitions/Error" + } + } }, "x-ms-examples": { "WorkbookGet": { @@ -140,7 +170,19 @@ "schema": { "$ref": "#/definitions/Workbook" } - } + }, + "400": { + "description": "Bad Request.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "Default Response.", + "schema": { + "$ref": "#/definitions/Error" + } + } }, "x-ms-examples": { "WorkbookAdd": { @@ -180,7 +222,22 @@ "schema": { "$ref": "#/definitions/Workbook" } - } + }, + "400": { + "description": "Bad Request.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Resource Not Found." + }, + "default": { + "description": "Default Response.", + "schema": { + "$ref": "#/definitions/Error" + } + } }, "x-ms-examples": { "WorkbookList": { @@ -208,11 +265,26 @@ "responses": { "200": { "description": "The workbook has been successfully deleted." - } + }, + "400": { + "description": "Bad Request.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Resource Not Found." + }, + "default": { + "description": "Default Response.", + "schema": { + "$ref": "#/definitions/Error" + } + } }, "x-ms-examples": { "WorkbookList": { - "$ref": "./examples/WorkbookOKResponse.json" + "$ref": "./examples/WorkbookResponseOnly.json" } } } From d869ce9377ceab75b41608a5129ee19b11f8e8ef Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Wed, 14 Mar 2018 14:21:52 -0700 Subject: [PATCH 03/50] Added missing files --- .../2015-05-01/examples/WorkbookAddLink.json | 25 ++++++++++ .../examples/WorkbookResponseOnly.json | 27 ++++++++++ .../examples/WorkbookUpdateLink.json | 40 +++++++++++++++ .../examples/WorkbooksListLink.json | 49 +++++++++++++++++++ 4 files changed, 141 insertions(+) create mode 100644 specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json create mode 100644 specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json create mode 100644 specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json create mode 100644 specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json new file mode 100644 index 000000000000..f59dc4aec0d6 --- /dev/null +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens" + }, + "responses": { + "200": { + }, + "400": { + "description": "Bad Request.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error defintion specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json new file mode 100644 index 000000000000..a472ac1c9aed --- /dev/null +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" + }, + "responses": { + "200": { + }, + "400": { + "description": "Bad Request.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Resource Not Found." + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error defintion specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json new file mode 100644 index 000000000000..9423995303f1 --- /dev/null +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "workbookProperties": { + "name": "Blah Blah Blah", + "serialziedData": "{\"MEDataModelRawJSON\":\"{\\n \\\"version\\\": \\\"1.4.1\\\",\\n \\\"isCustomDataModel\\\": true,\\n \\\"items\\\": [\\n {\\n \\\"id\\\": \\\"90a7134d-9a38-4c25-88d3-a495209873eb\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Sum\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"fail\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"0c289098-88e8-4010-b212-546815cddf70\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 2,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-j1\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"greenHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"cbdaab6f-a808-4f71-aca5-b3976cbb7345\\\",\\n \\\"chartType\\\": \\\"Bar\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"magentaHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"1d5a6a3a-9fa1-4099-9cf9-05eff72d1b02\\\",\\n \\\"grouping\\\": {\\n \\\"kind\\\": \\\"ByDimension\\\",\\n \\\"dimension\\\": \\\"context.application.version\\\"\\n },\\n \\\"chartType\\\": \\\"Grid\\\",\\n \\\"chartHeight\\\": 1,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"basicException.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-g0\\\"\\n },\\n {\\n \\\"id\\\": \\\"requestFailed.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-f0s2\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": true,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"blueHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n }\\n ],\\n \\\"currentFilter\\\": {\\n \\\"eventTypes\\\": [\\n 1,\\n 2\\n ],\\n \\\"typeFacets\\\": {},\\n \\\"isPermissive\\\": false\\n },\\n \\\"timeContext\\\": {\\n \\\"durationMs\\\": 75600000,\\n \\\"endTime\\\": \\\"2018-01-31T20:30:00.000Z\\\",\\n \\\"createdTime\\\": \\\"2018-01-31T23:54:26.280Z\\\",\\n \\\"isInitialTime\\\": false,\\n \\\"grain\\\": 1,\\n \\\"useDashboardTimeRange\\\": false\\n },\\n \\\"jsonUri\\\": \\\"Favorite_BlankChart\\\",\\n \\\"timeSource\\\": 0\\n}\"}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + }, + "responses": { + "200": { + }, + "400": { + "description": "Bad Request.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Resource Not Found." + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error defintion specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json new file mode 100644 index 000000000000..448bec323580 --- /dev/null +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroup": "my-resource-group", + "category": "workbook" + }, + "responses": { + "200": { + "body": [ + { + "name": "My Workbook 1", + "serializedData": "blah blah", + "version": "ME", + "workbookId": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "kind": "shared", + "timeModified": "2018-01-31T23:56:16.008902Z", + "tags": [], + "category": "workbook" + }, + { + "name": "My Workbook 2", + "serializedData": "{\"TimeSelection\":{\"durationMs\":1800000,\"endTime\":\"2018-01-31T23:56:15.493Z\",\"createdTime\":\"Wed Jan 31 2018 15:58:36 GMT-0800 (Pacific Standard Time)\",\"isInitialTime\":false,\"grain\":1,\"useDashboardTimeRange\":false},\"SearchFilter\":{\"eventTypes\":[1,2],\"typeFacets\":{},\"isPermissive\":false},\"QueryText\":\"*\",\"partId\":\"99e33a16-1b00-4a7d-b98f-a3c1bb3a4df8\"}", + "version": "Search", + "workbookId": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "kind": "shared", + "timeModified": "2018-01-31T23:59:25.4594264Z", + "tags": ["SampleTag01", "SampleTag2"], + "category": "workbook" + } + ] + }, + "400": { + "description": "Bad Request.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Resource Not Found." + }, + "default": { + "description": "Default Response.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } +} \ No newline at end of file From a17dde3e675ccf0342c7d80e5b1ac9e1a06326c7 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Wed, 14 Mar 2018 14:40:47 -0700 Subject: [PATCH 04/50] Fixed all reference issues --- .../2015-05-01/examples/WorkbookAdd.json | 14 +- .../2015-05-01/examples/WorkbookAddLink.json | 14 +- .../2015-05-01/examples/WorkbookGet.json | 17 +-- .../examples/WorkbookResponseOnly.json | 19 +-- .../2015-05-01/examples/WorkbookUpdate.json | 19 +-- .../examples/WorkbookUpdateLink.json | 19 +-- .../2015-05-01/examples/WorkbooksList.json | 17 +-- .../examples/WorkbooksListLink.json | 17 +-- .../2015-05-01/linkedWorkbooks_API.json | 105 ++++++--------- .../stable/2015-05-01/workbooks_API.json | 122 +++++++----------- 10 files changed, 98 insertions(+), 265 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json index 6fd88c0a3457..92df97c29bed 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json @@ -37,18 +37,6 @@ "TagSample02" ] } - }, - "400": { - "description": "Bad Request.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "Default Response. It will be deserialized as per the Error defintion specified in the schema. Exception will be thrown.", - "schema": { - "$ref": "#/definitions/Error" - } - } + } } } \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json index f59dc4aec0d6..160b20a99d02 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json @@ -8,18 +8,6 @@ }, "responses": { "200": { - }, - "400": { - "description": "Bad Request.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "Default Response. It will be deserialized as per the Error defintion specified in the schema. Exception will be thrown.", - "schema": { - "$ref": "#/definitions/Error" - } - } + } } } \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json index 68c88fd49e4d..899b4d65c52d 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json @@ -20,21 +20,6 @@ "TagSample02" ] } - }, - "400": { - "description": "Bad Request.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Resource Not Found." - }, - "default": { - "description": "Default Response. It will be deserialized as per the Error defintion specified in the schema. Exception will be thrown.", - "schema": { - "$ref": "#/definitions/Error" - } - } + } } } \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json index a472ac1c9aed..aa79be683eed 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json @@ -2,26 +2,11 @@ "parameters": { "api-version": "2015-05-01", "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", + "resourceGroup": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" }, "responses": { "200": { - }, - "400": { - "description": "Bad Request.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Resource Not Found." - }, - "default": { - "description": "Default Response. It will be deserialized as per the Error defintion specified in the schema. Exception will be thrown.", - "schema": { - "$ref": "#/definitions/Error" - } - } + } } } \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json index 3707920ab9bb..d8d270d675cc 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2015-05-01", "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", + "resourceGroup": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "workbookProperties": { "name": "Blah Blah Blah", @@ -33,21 +33,6 @@ "TagSample02" ] } - }, - "400": { - "description": "Bad Request.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Resource Not Found." - }, - "default": { - "description": "Default Response. It will be deserialized as per the Error defintion specified in the schema. Exception will be thrown.", - "schema": { - "$ref": "#/definitions/Error" - } - } + } } } \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json index 9423995303f1..da3d52e02d6b 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2015-05-01", "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", + "resourceGroup": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "workbookProperties": { "name": "Blah Blah Blah", @@ -20,21 +20,6 @@ }, "responses": { "200": { - }, - "400": { - "description": "Bad Request.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Resource Not Found." - }, - "default": { - "description": "Default Response. It will be deserialized as per the Error defintion specified in the schema. Exception will be thrown.", - "schema": { - "$ref": "#/definitions/Error" - } - } + } } } \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json index 85c28535ccb6..9f651004690e 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json @@ -29,21 +29,6 @@ "category": "workbook" } ] - }, - "400": { - "description": "Bad Request.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Resource Not Found." - }, - "default": { - "description": "Default Response. It will be deserialized as per the Error defintion specified in the schema. Exception will be thrown.", - "schema": { - "$ref": "#/definitions/Error" - } - } + } } } \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json index 448bec323580..9f651004690e 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json @@ -29,21 +29,6 @@ "category": "workbook" } ] - }, - "400": { - "description": "Bad Request.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Resource Not Found." - }, - "default": { - "description": "Default Response.", - "schema": { - "$ref": "#/definitions/Error" - } - } + } } } \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json index a7c9f8828783..46fdff7cf3dd 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json @@ -61,22 +61,7 @@ "$ref": "#/definitions/Workbook" } } - }, - "400": { - "description": "Bad Request.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Resource Not Found." - }, - "default": { - "description": "Default Response.", - "schema": { - "$ref": "#/definitions/Error" - } - } + } }, "x-ms-examples": { "WorkbooksList": { @@ -109,19 +94,7 @@ "responses": { "200": { "description": "The link has been created." - }, - "400": { - "description": "Bad Request.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "Default Response.", - "schema": { - "$ref": "#/definitions/Error" - } - } + } }, "x-ms-examples": { "WorkbookAdd": { @@ -152,22 +125,7 @@ "responses": { "200": { "description": "The workbook definition updated." - }, - "400": { - "description": "Bad Request.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Resource Not Found." - }, - "default": { - "description": "Default Response.", - "schema": { - "$ref": "#/definitions/Error" - } - } + } }, "x-ms-examples": { "WorkbookAdd": { @@ -195,22 +153,7 @@ "responses": { "200": { "description": "The workbook link has been successfully deleted." - }, - "400": { - "description": "Bad Request.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Resource Not Found." - }, - "default": { - "description": "Default Response.", - "schema": { - "$ref": "#/definitions/Error" - } - } + } }, "x-ms-examples": { "WorkbookList": { @@ -221,6 +164,44 @@ } }, "definitions": { + "Resource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "name": { + "type": "string", + "description": "Azure resource name", + "readOnly": true + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "An azure resource object" + }, "Workbook": { "description": "An Application Insights workbook definition.", "allOf": [ @@ -331,7 +312,7 @@ "description": "Client Api Version." }, "ResourceGroupNameParameter": { - "name": "resourceGroupName", + "name": "resourceGroup", "in": "path", "required": true, "type": "string", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json index 4ac3d1049bba..ef289c8173b3 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json @@ -67,22 +67,7 @@ "$ref": "#/definitions/Workbook" } } - }, - "400": { - "description": "Bad Request.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Resource Not Found." - }, - "default": { - "description": "Default Response.", - "schema": { - "$ref": "#/definitions/Error" - } - } + } }, "x-ms-examples": { "WorkbooksList": { @@ -115,22 +100,7 @@ "schema": { "$ref": "#/definitions/Workbook" } - }, - "400": { - "description": "Bad Request.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Resource Not Found." - }, - "default": { - "description": "Default Response.", - "schema": { - "$ref": "#/definitions/Error" - } - } + } }, "x-ms-examples": { "WorkbookGet": { @@ -170,19 +140,7 @@ "schema": { "$ref": "#/definitions/Workbook" } - }, - "400": { - "description": "Bad Request.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "default": { - "description": "Default Response.", - "schema": { - "$ref": "#/definitions/Error" - } - } + } }, "x-ms-examples": { "WorkbookAdd": { @@ -222,22 +180,7 @@ "schema": { "$ref": "#/definitions/Workbook" } - }, - "400": { - "description": "Bad Request.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Resource Not Found." - }, - "default": { - "description": "Default Response.", - "schema": { - "$ref": "#/definitions/Error" - } - } + } }, "x-ms-examples": { "WorkbookList": { @@ -265,22 +208,7 @@ "responses": { "200": { "description": "The workbook has been successfully deleted." - }, - "400": { - "description": "Bad Request.", - "schema": { - "$ref": "#/definitions/Error" - } - }, - "404": { - "description": "Resource Not Found." - }, - "default": { - "description": "Default Response.", - "schema": { - "$ref": "#/definitions/Error" - } - } + } }, "x-ms-examples": { "WorkbookList": { @@ -291,6 +219,44 @@ } }, "definitions": { + "Resource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "name": { + "type": "string", + "description": "Azure resource name", + "readOnly": true + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "An azure resource object" + }, "WorkbookRequest": { "description": "Properties that contain a workbook.", "properties": { @@ -415,7 +381,7 @@ "description": "Client Api Version." }, "ResourceGroupNameParameter": { - "name": "resourceGroupName", + "name": "resourceGroup", "in": "path", "required": true, "type": "string", From ed3d2c8a8ade24a45fb32e17427674bb0e52f3fa Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Wed, 14 Mar 2018 15:54:58 -0700 Subject: [PATCH 05/50] Updated a serializedData with the actual workbook content --- .../stable/2015-05-01/examples/WorkbookAdd.json | 2 +- .../stable/2015-05-01/examples/WorkbookGet.json | 2 +- .../stable/2015-05-01/examples/WorkbookUpdate.json | 2 +- .../stable/2015-05-01/examples/WorkbooksList.json | 2 +- .../stable/2015-05-01/examples/WorkbooksListLink.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json index 92df97c29bed..5df6dbc532fe 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json @@ -26,7 +26,7 @@ "200": { "body": { "name": "Blah Blah Blah", - "serialziedData": "{\"MEDataModelRawJSON\":\"{\\n \\\"version\\\": \\\"1.4.1\\\",\\n \\\"isCustomDataModel\\\": true,\\n \\\"items\\\": [\\n {\\n \\\"id\\\": \\\"90a7134d-9a38-4c25-88d3-a495209873eb\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Sum\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"fail\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"0c289098-88e8-4010-b212-546815cddf70\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 2,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-j1\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"greenHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"cbdaab6f-a808-4f71-aca5-b3976cbb7345\\\",\\n \\\"chartType\\\": \\\"Bar\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"magentaHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"1d5a6a3a-9fa1-4099-9cf9-05eff72d1b02\\\",\\n \\\"grouping\\\": {\\n \\\"kind\\\": \\\"ByDimension\\\",\\n \\\"dimension\\\": \\\"context.application.version\\\"\\n },\\n \\\"chartType\\\": \\\"Grid\\\",\\n \\\"chartHeight\\\": 1,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"basicException.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-g0\\\"\\n },\\n {\\n \\\"id\\\": \\\"requestFailed.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-f0s2\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": true,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"blueHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n }\\n ],\\n \\\"currentFilter\\\": {\\n \\\"eventTypes\\\": [\\n 1,\\n 2\\n ],\\n \\\"typeFacets\\\": {},\\n \\\"isPermissive\\\": false\\n },\\n \\\"timeContext\\\": {\\n \\\"durationMs\\\": 75600000,\\n \\\"endTime\\\": \\\"2018-01-31T20:30:00.000Z\\\",\\n \\\"createdTime\\\": \\\"2018-01-31T23:54:26.280Z\\\",\\n \\\"isInitialTime\\\": false,\\n \\\"grain\\\": 1,\\n \\\"useDashboardTimeRange\\\": false\\n },\\n \\\"jsonUri\\\": \\\"Favorite_BlankChart\\\",\\n \\\"timeSource\\\": 0\\n}\"}", + "serialziedData": "{\"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}", "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", "sharedType": "shared", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json index 899b4d65c52d..1c155a7be7ea 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json @@ -9,7 +9,7 @@ "200": { "body": { "name": "Blah Blah Blah", - "serialziedData": "{\"MEDataModelRawJSON\":\"{\\n \\\"version\\\": \\\"1.4.1\\\",\\n \\\"isCustomDataModel\\\": true,\\n \\\"items\\\": [\\n {\\n \\\"id\\\": \\\"90a7134d-9a38-4c25-88d3-a495209873eb\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Sum\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"fail\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"0c289098-88e8-4010-b212-546815cddf70\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 2,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-j1\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"greenHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"cbdaab6f-a808-4f71-aca5-b3976cbb7345\\\",\\n \\\"chartType\\\": \\\"Bar\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"magentaHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"1d5a6a3a-9fa1-4099-9cf9-05eff72d1b02\\\",\\n \\\"grouping\\\": {\\n \\\"kind\\\": \\\"ByDimension\\\",\\n \\\"dimension\\\": \\\"context.application.version\\\"\\n },\\n \\\"chartType\\\": \\\"Grid\\\",\\n \\\"chartHeight\\\": 1,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"basicException.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-g0\\\"\\n },\\n {\\n \\\"id\\\": \\\"requestFailed.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-f0s2\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": true,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"blueHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n }\\n ],\\n \\\"currentFilter\\\": {\\n \\\"eventTypes\\\": [\\n 1,\\n 2\\n ],\\n \\\"typeFacets\\\": {},\\n \\\"isPermissive\\\": false\\n },\\n \\\"timeContext\\\": {\\n \\\"durationMs\\\": 75600000,\\n \\\"endTime\\\": \\\"2018-01-31T20:30:00.000Z\\\",\\n \\\"createdTime\\\": \\\"2018-01-31T23:54:26.280Z\\\",\\n \\\"isInitialTime\\\": false,\\n \\\"grain\\\": 1,\\n \\\"useDashboardTimeRange\\\": false\\n },\\n \\\"jsonUri\\\": \\\"Favorite_BlankChart\\\",\\n \\\"timeSource\\\": 0\\n}\"}", + "serialziedData": "serialziedData": "{\"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}", "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", "sharedType": "shared", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json index d8d270d675cc..0392794dcab0 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json @@ -22,7 +22,7 @@ "200": { "body": { "name": "Blah Blah Blah", - "serialziedData": "{\"MEDataModelRawJSON\":\"{\\n \\\"version\\\": \\\"1.4.1\\\",\\n \\\"isCustomDataModel\\\": true,\\n \\\"items\\\": [\\n {\\n \\\"id\\\": \\\"90a7134d-9a38-4c25-88d3-a495209873eb\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Sum\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"fail\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"0c289098-88e8-4010-b212-546815cddf70\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 2,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-j1\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"greenHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"cbdaab6f-a808-4f71-aca5-b3976cbb7345\\\",\\n \\\"chartType\\\": \\\"Bar\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"magentaHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"1d5a6a3a-9fa1-4099-9cf9-05eff72d1b02\\\",\\n \\\"grouping\\\": {\\n \\\"kind\\\": \\\"ByDimension\\\",\\n \\\"dimension\\\": \\\"context.application.version\\\"\\n },\\n \\\"chartType\\\": \\\"Grid\\\",\\n \\\"chartHeight\\\": 1,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"basicException.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-g0\\\"\\n },\\n {\\n \\\"id\\\": \\\"requestFailed.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-f0s2\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": true,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"blueHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n }\\n ],\\n \\\"currentFilter\\\": {\\n \\\"eventTypes\\\": [\\n 1,\\n 2\\n ],\\n \\\"typeFacets\\\": {},\\n \\\"isPermissive\\\": false\\n },\\n \\\"timeContext\\\": {\\n \\\"durationMs\\\": 75600000,\\n \\\"endTime\\\": \\\"2018-01-31T20:30:00.000Z\\\",\\n \\\"createdTime\\\": \\\"2018-01-31T23:54:26.280Z\\\",\\n \\\"isInitialTime\\\": false,\\n \\\"grain\\\": 1,\\n \\\"useDashboardTimeRange\\\": false\\n },\\n \\\"jsonUri\\\": \\\"Favorite_BlankChart\\\",\\n \\\"timeSource\\\": 0\\n}\"}", + "serialziedData": "{\"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}", "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", "kind": "shared", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json index 9f651004690e..ea0727cc8794 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json @@ -20,7 +20,7 @@ }, { "name": "My Workbook 2", - "serializedData": "{\"TimeSelection\":{\"durationMs\":1800000,\"endTime\":\"2018-01-31T23:56:15.493Z\",\"createdTime\":\"Wed Jan 31 2018 15:58:36 GMT-0800 (Pacific Standard Time)\",\"isInitialTime\":false,\"grain\":1,\"useDashboardTimeRange\":false},\"SearchFilter\":{\"eventTypes\":[1,2],\"typeFacets\":{},\"isPermissive\":false},\"QueryText\":\"*\",\"partId\":\"99e33a16-1b00-4a7d-b98f-a3c1bb3a4df8\"}", + "serialziedData": "{\"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}", "version": "Search", "workbookId": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "kind": "shared", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json index 9f651004690e..ea0727cc8794 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json @@ -20,7 +20,7 @@ }, { "name": "My Workbook 2", - "serializedData": "{\"TimeSelection\":{\"durationMs\":1800000,\"endTime\":\"2018-01-31T23:56:15.493Z\",\"createdTime\":\"Wed Jan 31 2018 15:58:36 GMT-0800 (Pacific Standard Time)\",\"isInitialTime\":false,\"grain\":1,\"useDashboardTimeRange\":false},\"SearchFilter\":{\"eventTypes\":[1,2],\"typeFacets\":{},\"isPermissive\":false},\"QueryText\":\"*\",\"partId\":\"99e33a16-1b00-4a7d-b98f-a3c1bb3a4df8\"}", + "serialziedData": "{\"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}", "version": "Search", "workbookId": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "kind": "shared", From 28d306e517069a98e57c91045d8d8dae08126ab1 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Wed, 14 Mar 2018 16:01:08 -0700 Subject: [PATCH 06/50] Fixed serializedData syntax erros --- .../stable/2015-05-01/examples/WorkbookAdd.json | 2 +- .../stable/2015-05-01/examples/WorkbookGet.json | 2 +- .../stable/2015-05-01/examples/WorkbookUpdate.json | 2 +- .../stable/2015-05-01/examples/WorkbooksList.json | 4 ++-- .../stable/2015-05-01/examples/WorkbooksListLink.json | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json index 5df6dbc532fe..9fa190ccdb7c 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json @@ -26,7 +26,7 @@ "200": { "body": { "name": "Blah Blah Blah", - "serialziedData": "{\"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}", + "serialziedData": "{\"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}", "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", "sharedType": "shared", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json index 1c155a7be7ea..d7dc83845185 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json @@ -9,7 +9,7 @@ "200": { "body": { "name": "Blah Blah Blah", - "serialziedData": "serialziedData": "{\"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}", + "serialziedData": "{\"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}", "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", "sharedType": "shared", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json index 0392794dcab0..68ec03b59166 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json @@ -22,7 +22,7 @@ "200": { "body": { "name": "Blah Blah Blah", - "serialziedData": "{\"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}", + "serialziedData": "{\"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}", "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", "kind": "shared", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json index ea0727cc8794..0ef32567ff2a 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json @@ -10,7 +10,7 @@ "body": [ { "name": "My Workbook 1", - "serializedData": "blah blah", + "serialziedData": "{\"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}", "version": "ME", "workbookId": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "kind": "shared", @@ -20,7 +20,7 @@ }, { "name": "My Workbook 2", - "serialziedData": "{\"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}", + "serialziedData": "{\"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}", "version": "Search", "workbookId": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "kind": "shared", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json index ea0727cc8794..0ef32567ff2a 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json @@ -10,7 +10,7 @@ "body": [ { "name": "My Workbook 1", - "serializedData": "blah blah", + "serialziedData": "{\"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}", "version": "ME", "workbookId": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "kind": "shared", @@ -20,7 +20,7 @@ }, { "name": "My Workbook 2", - "serialziedData": "{\"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}", + "serialziedData": "{\"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}", "version": "Search", "workbookId": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "kind": "shared", From 397df4fbac9183dc17ae2afa2ab7d3e8632e5488 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Wed, 14 Mar 2018 18:10:23 -0700 Subject: [PATCH 07/50] Updated more on serializedData to use workbook content --- .../stable/2015-05-01/examples/WorkbookAdd.json | 2 +- .../stable/2015-05-01/examples/WorkbookUpdate.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json index 9fa190ccdb7c..1a0be8409eea 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json @@ -8,7 +8,7 @@ "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", "workbook": { "name": "Blah Blah Blah", - "serialziedData": "{\"MEDataModelRawJSON\":\"{\\n \\\"version\\\": \\\"1.4.1\\\",\\n \\\"isCustomDataModel\\\": true,\\n \\\"items\\\": [\\n {\\n \\\"id\\\": \\\"90a7134d-9a38-4c25-88d3-a495209873eb\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Sum\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"fail\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"0c289098-88e8-4010-b212-546815cddf70\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 2,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-j1\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"greenHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"cbdaab6f-a808-4f71-aca5-b3976cbb7345\\\",\\n \\\"chartType\\\": \\\"Bar\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"magentaHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"1d5a6a3a-9fa1-4099-9cf9-05eff72d1b02\\\",\\n \\\"grouping\\\": {\\n \\\"kind\\\": \\\"ByDimension\\\",\\n \\\"dimension\\\": \\\"context.application.version\\\"\\n },\\n \\\"chartType\\\": \\\"Grid\\\",\\n \\\"chartHeight\\\": 1,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"basicException.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-g0\\\"\\n },\\n {\\n \\\"id\\\": \\\"requestFailed.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-f0s2\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": true,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"blueHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n }\\n ],\\n \\\"currentFilter\\\": {\\n \\\"eventTypes\\\": [\\n 1,\\n 2\\n ],\\n \\\"typeFacets\\\": {},\\n \\\"isPermissive\\\": false\\n },\\n \\\"timeContext\\\": {\\n \\\"durationMs\\\": 75600000,\\n \\\"endTime\\\": \\\"2018-01-31T20:30:00.000Z\\\",\\n \\\"createdTime\\\": \\\"2018-01-31T23:54:26.280Z\\\",\\n \\\"isInitialTime\\\": false,\\n \\\"grain\\\": 1,\\n \\\"useDashboardTimeRange\\\": false\\n },\\n \\\"jsonUri\\\": \\\"Favorite_BlankChart\\\",\\n \\\"timeSource\\\": 0\\n}\"}", + "serialziedData": "{\"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}", "version": "ME", "kind": "shared", "category": "workbook", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json index 68ec03b59166..1ac9d79e10fa 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json @@ -6,7 +6,7 @@ "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "workbookProperties": { "name": "Blah Blah Blah", - "serialziedData": "{\"MEDataModelRawJSON\":\"{\\n \\\"version\\\": \\\"1.4.1\\\",\\n \\\"isCustomDataModel\\\": true,\\n \\\"items\\\": [\\n {\\n \\\"id\\\": \\\"90a7134d-9a38-4c25-88d3-a495209873eb\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Sum\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"fail\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"0c289098-88e8-4010-b212-546815cddf70\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 2,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-j1\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"greenHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"cbdaab6f-a808-4f71-aca5-b3976cbb7345\\\",\\n \\\"chartType\\\": \\\"Bar\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"magentaHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"1d5a6a3a-9fa1-4099-9cf9-05eff72d1b02\\\",\\n \\\"grouping\\\": {\\n \\\"kind\\\": \\\"ByDimension\\\",\\n \\\"dimension\\\": \\\"context.application.version\\\"\\n },\\n \\\"chartType\\\": \\\"Grid\\\",\\n \\\"chartHeight\\\": 1,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"basicException.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-g0\\\"\\n },\\n {\\n \\\"id\\\": \\\"requestFailed.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-f0s2\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": true,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"blueHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n }\\n ],\\n \\\"currentFilter\\\": {\\n \\\"eventTypes\\\": [\\n 1,\\n 2\\n ],\\n \\\"typeFacets\\\": {},\\n \\\"isPermissive\\\": false\\n },\\n \\\"timeContext\\\": {\\n \\\"durationMs\\\": 75600000,\\n \\\"endTime\\\": \\\"2018-01-31T20:30:00.000Z\\\",\\n \\\"createdTime\\\": \\\"2018-01-31T23:54:26.280Z\\\",\\n \\\"isInitialTime\\\": false,\\n \\\"grain\\\": 1,\\n \\\"useDashboardTimeRange\\\": false\\n },\\n \\\"jsonUri\\\": \\\"Favorite_BlankChart\\\",\\n \\\"timeSource\\\": 0\\n}\"}", + "serialziedData": "{\"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}", "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", "kind": "shared", From 0f294895d920e5716a0f602873bdff43ee6e8536 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Wed, 14 Mar 2018 19:01:27 -0700 Subject: [PATCH 08/50] Added workbooks type into OperationList --- .../2015-05-01/examples/WorkbookGet.json | 2 +- .../2015-05-01/examples/WorkbookUpdate.json | 4 +- .../examples/WorkbookUpdateLink.json | 2 +- .../2015-05-01/examples/WorkbooksList.json | 4 +- .../examples/WorkbooksListLink.json | 4 +- .../stable/2015-05-01/workbooks_API.json | 14 +++---- .../2015-04-01/examples/OperationList.json | 39 +++++++++++++++++++ 7 files changed, 54 insertions(+), 15 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json index d7dc83845185..a7528fe7dd64 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json @@ -9,7 +9,7 @@ "200": { "body": { "name": "Blah Blah Blah", - "serialziedData": "{\"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}", + "serialziedData": "JSON format of workbook goes here...", "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", "sharedType": "shared", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json index 1ac9d79e10fa..1a8a4ba477d2 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json @@ -6,7 +6,7 @@ "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "workbookProperties": { "name": "Blah Blah Blah", - "serialziedData": "{\"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}", + "serialziedData": "JSON format of workbook goes here...", "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", "kind": "shared", @@ -22,7 +22,7 @@ "200": { "body": { "name": "Blah Blah Blah", - "serialziedData": "{\"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}", + "serialziedData": "JSON format of workbook goes here...", "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", "kind": "shared", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json index da3d52e02d6b..e6d78ea512fc 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json @@ -6,7 +6,7 @@ "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "workbookProperties": { "name": "Blah Blah Blah", - "serialziedData": "{\"MEDataModelRawJSON\":\"{\\n \\\"version\\\": \\\"1.4.1\\\",\\n \\\"isCustomDataModel\\\": true,\\n \\\"items\\\": [\\n {\\n \\\"id\\\": \\\"90a7134d-9a38-4c25-88d3-a495209873eb\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Sum\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"fail\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"0c289098-88e8-4010-b212-546815cddf70\\\",\\n \\\"chartType\\\": \\\"Area\\\",\\n \\\"chartHeight\\\": 2,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-j1\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"greenHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"cbdaab6f-a808-4f71-aca5-b3976cbb7345\\\",\\n \\\"chartType\\\": \\\"Bar\\\",\\n \\\"chartHeight\\\": 4,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"preview/requests/duration\\\",\\n \\\"metricAggregation\\\": \\\"Avg\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-d0\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": false,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"aggregation\\\": \\\"Avg\\\",\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"magentaHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n },\\n {\\n \\\"id\\\": \\\"1d5a6a3a-9fa1-4099-9cf9-05eff72d1b02\\\",\\n \\\"grouping\\\": {\\n \\\"kind\\\": \\\"ByDimension\\\",\\n \\\"dimension\\\": \\\"context.application.version\\\"\\n },\\n \\\"chartType\\\": \\\"Grid\\\",\\n \\\"chartHeight\\\": 1,\\n \\\"metrics\\\": [\\n {\\n \\\"id\\\": \\\"basicException.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-g0\\\"\\n },\\n {\\n \\\"id\\\": \\\"requestFailed.count\\\",\\n \\\"metricAggregation\\\": \\\"Sum\\\",\\n \\\"color\\\": \\\"msportalfx-bgcolor-f0s2\\\"\\n }\\n ],\\n \\\"priorPeriod\\\": true,\\n \\\"clickAction\\\": {\\n \\\"defaultBlade\\\": \\\"SearchBlade\\\"\\n },\\n \\\"horizontalBars\\\": true,\\n \\\"showOther\\\": true,\\n \\\"percentage\\\": false,\\n \\\"palette\\\": \\\"blueHues\\\",\\n \\\"yAxisOption\\\": 0,\\n \\\"title\\\": \\\"\\\"\\n }\\n ],\\n \\\"currentFilter\\\": {\\n \\\"eventTypes\\\": [\\n 1,\\n 2\\n ],\\n \\\"typeFacets\\\": {},\\n \\\"isPermissive\\\": false\\n },\\n \\\"timeContext\\\": {\\n \\\"durationMs\\\": 75600000,\\n \\\"endTime\\\": \\\"2018-01-31T20:30:00.000Z\\\",\\n \\\"createdTime\\\": \\\"2018-01-31T23:54:26.280Z\\\",\\n \\\"isInitialTime\\\": false,\\n \\\"grain\\\": 1,\\n \\\"useDashboardTimeRange\\\": false\\n },\\n \\\"jsonUri\\\": \\\"Favorite_BlankChart\\\",\\n \\\"timeSource\\\": 0\\n}\"}", + "serialziedData": "JSON format of workbook goes here...", "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", "kind": "shared", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json index 0ef32567ff2a..df333deb6999 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json @@ -10,7 +10,7 @@ "body": [ { "name": "My Workbook 1", - "serialziedData": "{\"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}", + "serialziedData": "JSON format of workbook goes here...", "version": "ME", "workbookId": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "kind": "shared", @@ -20,7 +20,7 @@ }, { "name": "My Workbook 2", - "serialziedData": "{\"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}", + "serialziedData": "JSON format of workbook goes here...", "version": "Search", "workbookId": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "kind": "shared", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json index 0ef32567ff2a..df333deb6999 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json @@ -10,7 +10,7 @@ "body": [ { "name": "My Workbook 1", - "serialziedData": "{\"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}", + "serialziedData": "JSON format of workbook goes here...", "version": "ME", "workbookId": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "kind": "shared", @@ -20,7 +20,7 @@ }, { "name": "My Workbook 2", - "serialziedData": "{\"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}", + "serialziedData": "JSON format of workbook goes here...", "version": "Search", "workbookId": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "kind": "shared", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json index ef289c8173b3..fc5605a80b48 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json @@ -36,8 +36,8 @@ "paths": { "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroup}/providers/microsoft.insights/workbooks/category/{category}": { "get": { - "description": "Gets a list of workbooks.", - "operationId": "Workbooks_List", + "description": "Get all Workbooks defined within a specified resource group and category.", + "operationId": "Workbooks_ListByResourceGroup", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -76,10 +76,10 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroup}/resourceName/{resourceName}/providers/microsoft.insights/workbooks": { + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroup}/providers/microsoft.insights/workbooks/{resourceName}": { "get": { "description": "Get a single workbook by its resourceName.", - "operationId": "Workbook_GetByResourceName", + "operationId": "Workbooks_Get", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -110,7 +110,7 @@ }, "put": { "description": "Create a new workbook.", - "operationId": "Workbook_Create", + "operationId": "Workbooks_Create", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -150,7 +150,7 @@ }, "patch": { "description": "Updates a workbook that has already been added.", - "operationId": "Workbook_Update", + "operationId": "Workbooks_Update", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -190,7 +190,7 @@ }, "delete": { "description": "Delete a workbook.", - "operationId": "Workbook_Delete", + "operationId": "Workbooks_Delete", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" diff --git a/specification/monitor/resource-manager/microsoft.insights/stable/2015-04-01/examples/OperationList.json b/specification/monitor/resource-manager/microsoft.insights/stable/2015-04-01/examples/OperationList.json index ecb517307f53..30dffb2bdc86 100644 --- a/specification/monitor/resource-manager/microsoft.insights/stable/2015-04-01/examples/OperationList.json +++ b/specification/monitor/resource-manager/microsoft.insights/stable/2015-04-01/examples/OperationList.json @@ -669,6 +669,45 @@ }, "properties":{ + } + }, + { + "name":"Microsoft.Insights/Workbooks/Write", + "display":{ + "publisher":"Microsoft", + "provider":"Microsoft Monitoring Insights", + "resource":"Workbooks", + "operation":"Workbook write", + "description":"Writing to a workbook configuration" + }, + "properties":{ + + } + }, + { + "name":"Microsoft.Insights/Workbooks/Delete", + "display":{ + "publisher":"Microsoft", + "provider":"Microsoft Monitoring Insights", + "resource":"Workbooks", + "operation":"Workbook delete", + "description":"Deleting a workbook configuration" + }, + "properties":{ + + } + }, + { + "name":"Microsoft.Insights/Workbooks/Read", + "display":{ + "publisher":"Microsoft", + "provider":"Microsoft Monitoring Insights", + "resource":"Workbooks", + "operation":"Workbook read", + "description":"Reading a workbook configuration" + }, + "properties":{ + } } ] From 5d4bc6e84cd6fdde66646f1b72e0b376807b15a4 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 15 Mar 2018 10:22:17 -0700 Subject: [PATCH 09/50] Fixed a parameter name from ResourceGroupName to ResourceGroup for workbookAdd.json and WorkbookGet.json --- .../stable/2015-05-01/examples/WorkbookAdd.json | 2 +- .../stable/2015-05-01/examples/WorkbookAddLink.json | 2 +- .../stable/2015-05-01/examples/WorkbookGet.json | 2 +- .../stable/2015-05-01/examples/WorkbookUpdate.json | 4 ++-- .../2015-05-01/examples/WorkbookUpdateLink.json | 2 +- .../stable/2015-05-01/examples/WorkbooksList.json | 4 ++-- .../2015-05-01/examples/WorkbooksListLink.json | 4 ++-- .../stable/2015-05-01/linkedWorkbooks_API.json | 8 ++++---- .../stable/2015-05-01/workbooks_API.json | 12 ++++++------ 9 files changed, 20 insertions(+), 20 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json index 1a0be8409eea..4bddebcd483c 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2015-05-01", - "resourceGroupName": "my-resource-group", + "resourceGroup": "my-resource-group", "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", "subscriptionId": "subid", "WorkbookRequest": { diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json index 160b20a99d02..f2fab764763c 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2015-05-01", "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", + "resourceGroup": "my-resource-group", "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens" }, diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json index a7528fe7dd64..d7dc83845185 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json @@ -9,7 +9,7 @@ "200": { "body": { "name": "Blah Blah Blah", - "serialziedData": "JSON format of workbook goes here...", + "serialziedData": "{\"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}", "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", "sharedType": "shared", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json index 1a8a4ba477d2..1ac9d79e10fa 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json @@ -6,7 +6,7 @@ "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "workbookProperties": { "name": "Blah Blah Blah", - "serialziedData": "JSON format of workbook goes here...", + "serialziedData": "{\"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}", "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", "kind": "shared", @@ -22,7 +22,7 @@ "200": { "body": { "name": "Blah Blah Blah", - "serialziedData": "JSON format of workbook goes here...", + "serialziedData": "{\"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}", "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", "kind": "shared", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json index e6d78ea512fc..66977ea9fc79 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json @@ -6,7 +6,7 @@ "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "workbookProperties": { "name": "Blah Blah Blah", - "serialziedData": "JSON format of workbook goes here...", + "serialziedData": "{\"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}", "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", "kind": "shared", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json index df333deb6999..0ef32567ff2a 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json @@ -10,7 +10,7 @@ "body": [ { "name": "My Workbook 1", - "serialziedData": "JSON format of workbook goes here...", + "serialziedData": "{\"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}", "version": "ME", "workbookId": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "kind": "shared", @@ -20,7 +20,7 @@ }, { "name": "My Workbook 2", - "serialziedData": "JSON format of workbook goes here...", + "serialziedData": "{\"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}", "version": "Search", "workbookId": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "kind": "shared", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json index df333deb6999..0ef32567ff2a 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json @@ -10,7 +10,7 @@ "body": [ { "name": "My Workbook 1", - "serialziedData": "JSON format of workbook goes here...", + "serialziedData": "{\"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}", "version": "ME", "workbookId": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "kind": "shared", @@ -20,7 +20,7 @@ }, { "name": "My Workbook 2", - "serialziedData": "JSON format of workbook goes here...", + "serialziedData": "{\"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}", "version": "Search", "workbookId": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "kind": "shared", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json index 46fdff7cf3dd..9c0eb0e55dbe 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json @@ -79,7 +79,7 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupParameter" }, { "$ref": "#/parameters/ResourceNameParameter" @@ -110,7 +110,7 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupParameter" }, { "$ref": "#/parameters/ResourceNameParameter" @@ -138,7 +138,7 @@ "operationId": "Workbook_DeleteLink", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -311,7 +311,7 @@ "type": "string", "description": "Client Api Version." }, - "ResourceGroupNameParameter": { + "ResourceGroupParameter": { "name": "resourceGroup", "in": "path", "required": true, diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json index fc5605a80b48..c00c7d9406c2 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json @@ -43,7 +43,7 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupParameter" }, { "$ref": "#/parameters/CategoryParameter" @@ -85,7 +85,7 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupParameter" }, { "$ref": "#/parameters/ResourceNameParameter" @@ -116,7 +116,7 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupParameter" }, { "$ref": "#/parameters/ResourceNameParameter" @@ -156,7 +156,7 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupParameter" }, { "$ref": "#/parameters/ResourceNameParameter" @@ -196,7 +196,7 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "#/parameters/ResourceGroupParameter" }, { "$ref": "#/parameters/ResourceNameParameter" @@ -380,7 +380,7 @@ "type": "string", "description": "Client Api Version." }, - "ResourceGroupNameParameter": { + "ResourceGroupParameter": { "name": "resourceGroup", "in": "path", "required": true, From acd3d3a50daf83b798d23e75c96bf72356bdeab9 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 15 Mar 2018 10:49:05 -0700 Subject: [PATCH 10/50] Restored ResourceGroupNameParameter to the original value --- .../2015-05-01/examples/WorkbookAdd.json | 2 +- .../2015-05-01/examples/WorkbookAddLink.json | 2 +- .../2015-05-01/examples/WorkbookGet.json | 2 +- .../examples/WorkbookResponseOnly.json | 2 +- .../2015-05-01/examples/WorkbookUpdate.json | 2 +- .../examples/WorkbookUpdateLink.json | 2 +- .../2015-05-01/examples/WorkbooksList.json | 2 +- .../examples/WorkbooksListLink.json | 2 +- .../2015-05-01/linkedWorkbooks_API.json | 14 ++++++------- .../stable/2015-05-01/workbooks_API.json | 20 +++++++++---------- 10 files changed, 25 insertions(+), 25 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json index 4bddebcd483c..1a0be8409eea 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json @@ -1,7 +1,7 @@ { "parameters": { "api-version": "2015-05-01", - "resourceGroup": "my-resource-group", + "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", "subscriptionId": "subid", "WorkbookRequest": { diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json index f2fab764763c..160b20a99d02 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2015-05-01", "subscriptionId": "subid", - "resourceGroup": "my-resource-group", + "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens" }, diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json index d7dc83845185..9df49fba60d6 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2015-05-01", "subscriptionId": "subid", - "resourceGroup": "my-resource-group", + "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" }, "responses": { diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json index aa79be683eed..f3fd41a1026c 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2015-05-01", "subscriptionId": "subid", - "resourceGroup": "my-resource-group", + "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" }, "responses": { diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json index 1ac9d79e10fa..b5337619efe4 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2015-05-01", "subscriptionId": "subid", - "resourceGroup": "my-resource-group", + "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "workbookProperties": { "name": "Blah Blah Blah", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json index 66977ea9fc79..39508fa02cb0 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2015-05-01", "subscriptionId": "subid", - "resourceGroup": "my-resource-group", + "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "workbookProperties": { "name": "Blah Blah Blah", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json index 0ef32567ff2a..3556c92e039a 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2015-05-01", "subscriptionId": "subid", - "resourceGroup": "my-resource-group", + "resourceGroupName": "my-resource-group", "category": "workbook" }, "responses": { diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json index 0ef32567ff2a..3556c92e039a 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json @@ -2,7 +2,7 @@ "parameters": { "api-version": "2015-05-01", "subscriptionId": "subid", - "resourceGroup": "my-resource-group", + "resourceGroupName": "my-resource-group", "category": "workbook" }, "responses": { diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json index 9c0eb0e55dbe..52320b54794b 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json @@ -70,7 +70,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroup}/resourceName/{resourceName}/providers/microsoft.insights/workbooks": { + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/resourceName/{resourceName}/providers/microsoft.insights/workbooks": { "put": { "description": "Create a new workbook.", "operationId": "Workbook_CreateLink", @@ -79,7 +79,7 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ResourceNameParameter" @@ -110,7 +110,7 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ResourceNameParameter" @@ -138,7 +138,7 @@ "operationId": "Workbook_DeleteLink", "parameters": [ { - "$ref": "#/parameters/ResourceGroupParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -226,7 +226,7 @@ "properties": { "x-ms-client-flatten": true, "description": "Metadata describing a web test for an Azure resource.", - "$ref": "#/definitions/Workbook" + "$ref": "#/definitions/WorkbookProperties" } } }, @@ -311,8 +311,8 @@ "type": "string", "description": "Client Api Version." }, - "ResourceGroupParameter": { - "name": "resourceGroup", + "ResourceGroupNameParameter": { + "name": "resourceGroupName", "in": "path", "required": true, "type": "string", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json index c00c7d9406c2..246545a1ee9c 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json @@ -34,7 +34,7 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroup}/providers/microsoft.insights/workbooks/category/{category}": { + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/category/{category}": { "get": { "description": "Get all Workbooks defined within a specified resource group and category.", "operationId": "Workbooks_ListByResourceGroup", @@ -43,7 +43,7 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/CategoryParameter" @@ -76,7 +76,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroup}/providers/microsoft.insights/workbooks/{resourceName}": { + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { "get": { "description": "Get a single workbook by its resourceName.", "operationId": "Workbooks_Get", @@ -85,7 +85,7 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ResourceNameParameter" @@ -116,7 +116,7 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ResourceNameParameter" @@ -156,7 +156,7 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ResourceNameParameter" @@ -196,7 +196,7 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupParameter" + "$ref": "#/parameters/ResourceGroupNameParameter" }, { "$ref": "#/parameters/ResourceNameParameter" @@ -295,7 +295,7 @@ "properties": { "x-ms-client-flatten": true, "description": "Metadata describing a web test for an Azure resource.", - "$ref": "#/definitions/Workbook" + "$ref": "#/definitions/WorkbookProperties" } } }, @@ -380,8 +380,8 @@ "type": "string", "description": "Client Api Version." }, - "ResourceGroupParameter": { - "name": "resourceGroup", + "ResourceGroupNameParameter": { + "name": "resourceGroupName", "in": "path", "required": true, "type": "string", From 6b773977917e372b5c4e6c3d8270a9397c6d5ee3 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 15 Mar 2018 11:16:23 -0700 Subject: [PATCH 11/50] Removed SharedTypeParameter since we are not using it. Added 'x-ms-parameter-location': 'method' to SourceIdParameter --- .../stable/2015-05-01/linkedWorkbooks_API.json | 3 ++- .../stable/2015-05-01/workbooks_API.json | 17 ----------------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json index 52320b54794b..0e5abe9df99c 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json @@ -332,7 +332,8 @@ "in": "query", "required": true, "type": "string", - "description": "Azure Resource Id that will fetch all linked workbooks." + "description": "Azure Resource Id that will fetch all linked workbooks.", + "x-ms-parameter-location": "method" }, "CategoryParameter": { "name": "category", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json index 246545a1ee9c..4a815bdebdf6 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json @@ -396,23 +396,6 @@ "description": "The name of the Application Insights workbook resource.", "x-ms-parameter-location": "method" }, - "SharedTypeParameter": { - "name": "sharedType", - "in": "query", - "required": false, - "type": "string", - "default": "shared", - "enum": [ - "shared", - "user" - ], - "x-ms-enum": { - "name": "SharedTypeKind", - "modelAsString": false - }, - "description": "The type of workbook that will be used for a saved item. Value can be either shared or user. If not specified, 'shared' will be assigned.", - "x-ms-parameter-location": "method" - }, "CategoryParameter": { "name": "category", "in": "path", From 302d2aeaf43c290fbd794e817cf6ef2fd8a2767a Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 15 Mar 2018 11:31:49 -0700 Subject: [PATCH 12/50] Added 'x-ms-parameter-location' to purgeId and body parameters in components_API.json otherwise Swagger CI build fails. --- .../stable/2015-05-01/components_API.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/components_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/components_API.json index 6de5969d32a2..64c3a69a5ff5 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/components_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/components_API.json @@ -611,14 +611,16 @@ "required": true, "schema": { "$ref": "#/definitions/ComponentPurgeBody" - } + }, + "x-ms-parameter-location": "method" }, "ComponentPurgeIdParameter": { "name": "purgeId", "in": "path", "required": true, "type": "string", - "description": "In a purge status request, this is the Id of the operation the status of which is returned." + "description": "In a purge status request, this is the Id of the operation the status of which is returned.", + "x-ms-parameter-location": "method" } } } \ No newline at end of file From cd35c44bef2446c846d10bace7d93146cf17949f Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 15 Mar 2018 16:10:09 -0700 Subject: [PATCH 13/50] Modified POST & PATCH so that Body and response uses the same type. --- .../stable/2015-05-01/workbooks_API.json | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json index 4a815bdebdf6..96b221589239 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json @@ -44,6 +44,9 @@ }, { "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" }, { "$ref": "#/parameters/CategoryParameter" @@ -86,6 +89,9 @@ }, { "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" }, { "$ref": "#/parameters/ResourceNameParameter" @@ -125,12 +131,12 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "WorkbookRequest", + "name": "WorkbookPayload", "description": "Properties that need to be specified to create a new workbook.", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/WorkbookRequest" + "$ref": "#/definitions/Workbook" } } ], @@ -165,12 +171,12 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "WorkbookRequest", + "name": "WorkbookPayload", "description": "Properties that need to be specified to create a new workbook.", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/WorkbookRequest" + "$ref": "#/definitions/Workbook" } } ], @@ -257,20 +263,6 @@ "x-ms-azure-resource": true, "description": "An azure resource object" }, - "WorkbookRequest": { - "description": "Properties that contain a workbook.", - "properties": { - "sourceResourceId": { - "type": "string", - "description": "The source resource Id that will be used to link with a workbook resource when specified." - }, - "workbook": { - "type": "object", - "$ref": "#/definitions/Workbook", - "description": "Properties that define a workbook." - } - } - }, "Workbook": { "description": "An Application Insights workbook definition.", "allOf": [ @@ -396,6 +388,14 @@ "description": "The name of the Application Insights workbook resource.", "x-ms-parameter-location": "method" }, + "LocationParameter": { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The name of location where workbook is stored.", + "x-ms-parameter-location": "method" + }, "CategoryParameter": { "name": "category", "in": "path", From 6472b25c314f8c50ee37dda28461e557628f57cb Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Mon, 19 Mar 2018 09:56:43 -0700 Subject: [PATCH 14/50] Added {location} parameter in the path for GET --- .../microsoft.insights/stable/2015-05-01/workbooks_API.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json index 96b221589239..deabbef5dcd4 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json @@ -34,7 +34,7 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/category/{category}": { + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/locations/{location}/providers/microsoft.insights/workbooks/category/{category}": { "get": { "description": "Get all Workbooks defined within a specified resource group and category.", "operationId": "Workbooks_ListByResourceGroup", @@ -79,7 +79,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/locations/{location}/providers/microsoft.insights/workbooks/{resourceName}": { "get": { "description": "Get a single workbook by its resourceName.", "operationId": "Workbooks_Get", From 50fe051a369e2380f8607629cd687267a7a4165f Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Mon, 19 Mar 2018 10:41:40 -0700 Subject: [PATCH 15/50] Added missing parameters and response fields --- .../examples/LinkedWorkbookResponseOnly.json | 13 +++++ .../2015-05-01/examples/WorkbookAdd.json | 4 ++ .../2015-05-01/examples/WorkbookAddLink.json | 3 +- .../2015-05-01/examples/WorkbookGet.json | 4 ++ .../2015-05-01/examples/WorkbookUpdate.json | 4 ++ .../examples/WorkbookUpdateLink.json | 1 + .../2015-05-01/examples/WorkbooksList.json | 7 +++ .../examples/WorkbooksListLink.json | 9 ++- .../2015-05-01/linkedWorkbooks_API.json | 4 +- .../stable/2015-05-01/workbooks_API.json | 58 ++++++++++--------- 10 files changed, 74 insertions(+), 33 deletions(-) create mode 100644 specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json new file mode 100644 index 000000000000..2ebfc3e31574 --- /dev/null +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens" + }, + "responses": { + "200": { + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json index 1a0be8409eea..786acb97332d 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json @@ -11,6 +11,7 @@ "serialziedData": "{\"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}", "version": "ME", "kind": "shared", + "location": "west us", "category": "workbook", "timeModified": null, "userId": "57af263f-ae5e-46ea-9442-e0bcaff3e7f6", @@ -25,6 +26,9 @@ "responses": { "200": { "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", "name": "Blah Blah Blah", "serialziedData": "{\"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}", "version": "ME", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json index 160b20a99d02..d4854f26d87a 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json @@ -3,8 +3,7 @@ "api-version": "2015-05-01", "subscriptionId": "subid", "resourceGroupName": "my-resource-group", - "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens" + "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960" }, "responses": { "200": { diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json index 9df49fba60d6..148f80f6c145 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json @@ -3,11 +3,15 @@ "api-version": "2015-05-01", "subscriptionId": "subid", "resourceGroupName": "my-resource-group", + "location": "west us", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" }, "responses": { "200": { "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", "name": "Blah Blah Blah", "serialziedData": "{\"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}", "version": "ME", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json index b5337619efe4..4fe88fbaad41 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json @@ -10,6 +10,7 @@ "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", "kind": "shared", + "location": "west us", "category": "workbook", "timeModified": null, "tags": [ @@ -21,6 +22,9 @@ "responses": { "200": { "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", "name": "Blah Blah Blah", "serialziedData": "{\"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}", "version": "ME", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json index 39508fa02cb0..b9dc0bcf9caf 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json @@ -10,6 +10,7 @@ "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", "kind": "shared", + "location": "west us", "category": "workbook", "timeModified": null, "tags": [ diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json index 3556c92e039a..f20e8f25907e 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json @@ -3,12 +3,16 @@ "api-version": "2015-05-01", "subscriptionId": "subid", "resourceGroupName": "my-resource-group", + "location": "west us", "category": "workbook" }, "responses": { "200": { "body": [ { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", "name": "My Workbook 1", "serialziedData": "{\"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}", "version": "ME", @@ -19,6 +23,9 @@ "category": "workbook" }, { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", "name": "My Workbook 2", "serialziedData": "{\"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}", "version": "Search", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json index 3556c92e039a..45535dc9bcae 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json @@ -3,12 +3,16 @@ "api-version": "2015-05-01", "subscriptionId": "subid", "resourceGroupName": "my-resource-group", - "category": "workbook" + "category": "workbook", + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens" }, "responses": { "200": { "body": [ { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", "name": "My Workbook 1", "serialziedData": "{\"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}", "version": "ME", @@ -19,6 +23,9 @@ "category": "workbook" }, { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", "name": "My Workbook 2", "serialziedData": "{\"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}", "version": "Search", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json index 0e5abe9df99c..c279ce467bb9 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json @@ -98,7 +98,7 @@ }, "x-ms-examples": { "WorkbookAdd": { - "$ref": "./examples/WorkbookResponseOnly.json" + "$ref": "./examples/LinkedWorkbookResponseOnly.json" } } }, @@ -129,7 +129,7 @@ }, "x-ms-examples": { "WorkbookAdd": { - "$ref": "./examples/WorkbookResponseOnly.json" + "$ref": "./examples/LinkedWorkbookResponseOnly.json" } } }, diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json index deabbef5dcd4..2145e205b484 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json @@ -114,6 +114,36 @@ } } }, + "delete": { + "description": "Delete a workbook.", + "operationId": "Workbooks_Delete", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The workbook has been successfully deleted." + } + }, + "x-ms-examples": { + "WorkbookList": { + "$ref": "./examples/WorkbookResponseOnly.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { "put": { "description": "Create a new workbook.", "operationId": "Workbooks_Create", @@ -193,34 +223,6 @@ "$ref": "./examples/WorkbookUpdate.json" } } - }, - "delete": { - "description": "Delete a workbook.", - "operationId": "Workbooks_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ResourceNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The workbook has been successfully deleted." - } - }, - "x-ms-examples": { - "WorkbookList": { - "$ref": "./examples/WorkbookResponseOnly.json" - } - } } } }, From edba30a4b9697ea23b1b3f22de012437e98a70a6 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Mon, 19 Mar 2018 11:04:52 -0700 Subject: [PATCH 16/50] Fixed params issue again --- .../stable/2015-05-01/examples/WorkbookUpdateLink.json | 1 + .../stable/2015-05-01/examples/WorkbooksListLink.json | 4 +++- .../stable/2015-05-01/linkedWorkbooks_API.json | 9 ++++++--- .../stable/2015-05-01/workbooks_API.json | 3 +++ 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json index b9dc0bcf9caf..07e512353cad 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json @@ -4,6 +4,7 @@ "subscriptionId": "subid", "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", "workbookProperties": { "name": "Blah Blah Blah", "serialziedData": "{\"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}", diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json index 45535dc9bcae..db45268d34ce 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json @@ -4,7 +4,9 @@ "subscriptionId": "subid", "resourceGroupName": "my-resource-group", "category": "workbook", - "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens" + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "canFetchWorkbook": true, + "tags": [] }, "responses": { "200": { diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json index c279ce467bb9..b23a1400cd1b 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json @@ -50,6 +50,9 @@ }, { "$ref": "#/parameters/CanFetchWorkbookContentParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -140,14 +143,14 @@ { "$ref": "#/parameters/ResourceGroupNameParameter" }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, { "$ref": "#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json index 2145e205b484..9670cb513fb7 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json @@ -127,6 +127,9 @@ { "$ref": "#/parameters/ResourceNameParameter" }, + { + "$ref": "#/parameters/LocationParameter" + }, { "$ref": "#/parameters/ApiVersionParameter" } From ac48433bf1fe3fd1c4b0139b4a77e1c10b5c2bb6 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 20 Mar 2018 10:19:47 -0700 Subject: [PATCH 17/50] Added workbook entries to readme.md --- .../stable/2015-05-01/examples/WorkbookAdd.json | 2 +- specification/applicationinsights/resource-manager/readme.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json index 786acb97332d..903a56169449 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json @@ -33,7 +33,7 @@ "serialziedData": "{\"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}", "version": "ME", "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "sharedType": "shared", + "kind": "shared", "category": "workbook", "timeModified": null, "tags": [ diff --git a/specification/applicationinsights/resource-manager/readme.md b/specification/applicationinsights/resource-manager/readme.md index 1b7cc532ca0f..15729a914d16 100644 --- a/specification/applicationinsights/resource-manager/readme.md +++ b/specification/applicationinsights/resource-manager/readme.md @@ -240,6 +240,8 @@ input-file: - Microsoft.Insights/stable/2015-05-01/favorites_API.json - Microsoft.Insights/stable/2015-05-01/webTestLocations_API.json - Microsoft.Insights/stable/2015-05-01/webTests_API.json +- Microsoft.Insights/stable/2015-05-01/workbooks_API.json +- Microsoft.Insights/stable/2015-05-01/linkedWorkbooks_API.json ``` --- # Code Generation @@ -359,6 +361,8 @@ input-file: - ./Microsoft.Insights/stable/2015-05-01/aiOperations_API.json - ./Microsoft.Insights/stable/2015-05-01/components_API.json - ./Microsoft.Insights/stable/2015-05-01/webTests_API.json + - ./Microsoft.Insights/stable/2015-05-01/workbooks_API.json + - ./Microsoft.Insights/stable/2015-05-01/linkedWorkbooks_API.json override-info: title: ApplicationInsightsManagementClient From 056a8a455aff2cfca0c6bdce9d2075272e885125 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 20 Mar 2018 11:11:15 -0700 Subject: [PATCH 18/50] Add files via upload --- .../2015-05-01/linkedWorkbooks_API.json | 380 +++++++++++++++ .../stable/2015-05-01/workbooks_API.json | 443 ++++++++++++++++++ 2 files changed, 823 insertions(+) create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/linkedWorkbooks_API.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/linkedWorkbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/linkedWorkbooks_API.json new file mode 100644 index 000000000000..1230d15bffcb --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/linkedWorkbooks_API.json @@ -0,0 +1,380 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationInsightsManagementClient", + "description": "Azure Application Insights workbook type.", + "version": "2015-05-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/microsoft.insights/workbooks/category/{category}": { + "get": { + "description": "Gets a list of workbooks.", + "operationId": "Workbooks_ListBySourceId", + "parameters": [ + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/CategoryParameter" + }, + { + "$ref": "#/parameters/TagsParameter" + }, + { + "$ref": "#/parameters/CanFetchWorkbookContentParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more workbook definitions.", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Workbook" + } + } + } + }, + "x-ms-examples": { + "WorkbooksList": { + "$ref": "./examples/WorkbooksListLink.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/resourceName/{resourceName}/providers/microsoft.insights/workbooks": { + "put": { + "description": "Create a new workbook.", + "operationId": "Workbook_CreateLink", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The link has been created." + } + }, + "x-ms-examples": { + "WorkbookAdd": { + "$ref": "./examples/LinkedWorkbookResponseOnly.json" + } + } + }, + "patch": { + "description": "Updates a workbook that has already been added.", + "operationId": "Workbook_UpdateLink", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The workbook definition updated." + } + }, + "x-ms-examples": { + "WorkbookAdd": { + "$ref": "./examples/LinkedWorkbookResponseOnly.json" + } + } + }, + "delete": { + "description": "Delete a workbook.", + "operationId": "Workbook_DeleteLink", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The workbook link has been successfully deleted." + } + }, + "x-ms-examples": { + "WorkbookList": { + "$ref": "./examples/WorkbookResponseOnly.json" + } + } + } + } + }, + "definitions": { + "Resource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "name": { + "type": "string", + "description": "Azure resource name", + "readOnly": true + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "An azure resource object" + }, + "Workbook": { + "description": "An Application Insights workbook definition.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "kind": { + "type": "string", + "description": "The kind of workbook. Choices are user and shared.", + "default": "shared", + "enum": [ + "user", + "shared" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": false + } + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Metadata describing a web test for an Azure resource.", + "$ref": "#/definitions/WorkbookProperties" + } + } + }, + "WorkbookProperties": { + "description": "Properties that contain a workbook.", + "required": [ + "name", + "kind", + "category", + "workbookId", + "serializedData", + "userId" + ], + "properties": { + "name": { + "type": "string", + "description": "The user-defined name of the workbook." + }, + "serializedData": { + "type": "string", + "description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON" + }, + "version": { + "type": "string", + "description": "This instance's version of the data model. This can change as new features are added that can be marked workbook." + }, + "workbookId": { + "type": "string", + "description": "Internally assigned unique id of the workbook definition. This will be a resource name.", + "readOnly": true + }, + "kind": { + "description": "Enum indicating if this workbook definition is owned by a specific user or is shared between all users with access to the Application Insights component.", + "x-ms-client-name": "SharedTypeKind", + "default": "shared", + "type": "string", + "enum": [ + "shared", + "user" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": false + } + }, + "timeModified": { + "type": "string", + "description": "Date and time in UTC of the last modification that was made to this workbook definition.", + "readOnly": true + }, + "category": { + "type": "string", + "description": "Workbook category, as defined by the user at creation time." + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of 0 or more tags that are associated with this workbook definition" + }, + "userId": { + "type": "string", + "readOnly": true, + "description": "Unique user id of the specific user that owns this workbook." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of Azure resource group.", + "x-ms-parameter-location": "method" + }, + "ResourceNameParameter": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of Azure resource.", + "x-ms-parameter-location": "method" + }, + "SourceIdParameter": { + "name": "sourceId", + "in": "query", + "required": true, + "type": "string", + "description": "Azure Resource Id that will fetch all linked workbooks.", + "x-ms-parameter-location": "method" + }, + "CategoryParameter": { + "name": "category", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "workbook", + "TSG", + "performance", + "retention" + ], + "x-ms-enum": { + "name": "CategoryType", + "modelAsString": true + }, + "description": "Category of workbook to return. When left out, the source type defaults to 'other' (not present in this enum).", + "x-ms-parameter-location": "method" + }, + "CanFetchWorkbookContentParameter": { + "name": "canFetchContent", + "in": "query", + "required": false, + "type": "boolean", + "description": "Flag indicating whether or not to return the full content for each applicable workbook. If false, only return summary content for workbooks.", + "x-ms-parameter-location": "method" + }, + "TagsParameter": { + "name": "tags", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv", + "description": "Tags presents on each workbook returned.", + "x-ms-parameter-location": "method" + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json new file mode 100644 index 000000000000..b775d322d35e --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json @@ -0,0 +1,443 @@ +{ + "swagger": "2.0", + "info": { + "title": "ApplicationInsightsManagementClient", + "description": "Azure Application Insights workbook type.", + "version": "2015-05-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/locations/{location}/providers/microsoft.insights/workbooks/category/{category}": { + "get": { + "description": "Get all Workbooks defined within a specified resource group and category.", + "operationId": "Workbooks_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/CategoryParameter" + }, + { + "$ref": "#/parameters/TagsParameter" + }, + { + "$ref": "#/parameters/CanFetchWorkbookContentParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more workbook definitions.", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Workbook" + } + } + } + }, + "x-ms-examples": { + "WorkbooksList": { + "$ref": "./examples/WorkbooksList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/locations/{location}/providers/microsoft.insights/workbooks/{resourceName}": { + "get": { + "description": "Get a single workbook by its resourceName.", + "operationId": "Workbooks_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A workbook definition.", + "schema": { + "$ref": "#/definitions/Workbook" + } + } + }, + "x-ms-examples": { + "WorkbookGet": { + "$ref": "./examples/WorkbookGet.json" + } + } + }, + "delete": { + "description": "Delete a workbook.", + "operationId": "Workbooks_Delete", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The workbook has been successfully deleted." + } + }, + "x-ms-examples": { + "WorkbookList": { + "$ref": "./examples/WorkbookResponseOnly.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { + "put": { + "description": "Create a new workbook.", + "operationId": "Workbooks_Create", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "WorkbookPayload", + "description": "Properties that need to be specified to create a new workbook.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Workbook" + } + } + ], + "responses": { + "200": { + "description": "The newly created workbook.", + "schema": { + "$ref": "#/definitions/Workbook" + } + } + }, + "x-ms-examples": { + "WorkbookAdd": { + "$ref": "./examples/WorkbookAdd.json" + } + } + }, + "patch": { + "description": "Updates a workbook that has already been added.", + "operationId": "Workbooks_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "WorkbookPayload", + "description": "Properties that need to be specified to create a new workbook.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Workbook" + } + } + ], + "responses": { + "200": { + "description": "The workbook definition updated.", + "schema": { + "$ref": "#/definitions/Workbook" + } + } + }, + "x-ms-examples": { + "WorkbookList": { + "$ref": "./examples/WorkbookUpdate.json" + } + } + } + } + }, + "definitions": { + "Resource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "name": { + "type": "string", + "description": "Azure resource name", + "readOnly": true + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true, + "description": "An azure resource object" + }, + "Workbook": { + "description": "An Application Insights workbook definition.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "kind": { + "type": "string", + "description": "The kind of workbook. Choices are user and shared.", + "default": "shared", + "enum": [ + "user", + "shared" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": false + } + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Metadata describing a web test for an Azure resource.", + "$ref": "#/definitions/WorkbookProperties" + } + } + }, + "WorkbookProperties": { + "description": "Properties that contain a workbook.", + "required": [ + "name", + "kind", + "category", + "workbookId", + "serializedData", + "userId" + ], + "properties": { + "name": { + "type": "string", + "description": "The user-defined name of the workbook." + }, + "serializedData": { + "type": "string", + "description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON" + }, + "version": { + "type": "string", + "description": "This instance's version of the data model. This can change as new features are added that can be marked workbook." + }, + "workbookId": { + "type": "string", + "description": "Internally assigned unique id of the workbook definition.", + "readOnly": true + }, + "kind": { + "description": "Enum indicating if this workbook definition is owned by a specific user or is shared between all users with access to the Application Insights component.", + "x-ms-client-name": "SharedTypeKind", + "default": "shared", + "type": "string", + "enum": [ + "shared", + "user" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": false + } + }, + "timeModified": { + "type": "string", + "description": "Date and time in UTC of the last modification that was made to this workbook definition.", + "readOnly": true + }, + "category": { + "type": "string", + "description": "Workbook category, as defined by the user at creation time." + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of 0 or more tags that are associated with this workbook definition" + }, + "userId": { + "type": "string", + "readOnly": true, + "description": "Unique user id of the specific user that owns this workbook." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ResourceNameParameter": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Application Insights workbook resource.", + "x-ms-parameter-location": "method" + }, + "LocationParameter": { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The name of location where workbook is stored.", + "x-ms-parameter-location": "method" + }, + "CategoryParameter": { + "name": "category", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "workbook", + "TSG", + "performance", + "retention" + ], + "x-ms-enum": { + "name": "CategoryType", + "modelAsString": true + }, + "description": "Category of workbook to return.", + "x-ms-parameter-location": "method" + }, + "CanFetchWorkbookContentParameter": { + "name": "canFetchContent", + "in": "query", + "required": false, + "type": "boolean", + "description": "Flag indicating whether or not to return the full content for each applicable workbook. If false, only return summary content for workbooks.", + "x-ms-parameter-location": "method" + }, + "TagsParameter": { + "name": "tags", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv", + "description": "Tags presents on each workbook returned.", + "x-ms-parameter-location": "method" + } + } +} \ No newline at end of file From 602ed11e306d47fd6eb41453ba5aa10adabff99f Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 20 Mar 2018 11:12:17 -0700 Subject: [PATCH 19/50] Add files via upload --- .../examples/LinkedWorkbookResponseOnly.json | 13 ++++++ .../2015-05-01/examples/WorkbookAdd.json | 46 +++++++++++++++++++ .../2015-05-01/examples/WorkbookAddLink.json | 12 +++++ .../2015-05-01/examples/WorkbookGet.json | 29 ++++++++++++ .../examples/WorkbookResponseOnly.json | 12 +++++ .../2015-05-01/examples/WorkbookUpdate.json | 42 +++++++++++++++++ .../examples/WorkbookUpdateLink.json | 27 +++++++++++ .../2015-05-01/examples/WorkbooksList.json | 41 +++++++++++++++++ .../examples/WorkbooksListLink.json | 43 +++++++++++++++++ 9 files changed, 265 insertions(+) create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json new file mode 100644 index 000000000000..bcdfcf46fd1a --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens" + }, + "responses": { + "200": { + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json new file mode 100644 index 000000000000..091945e071d7 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "subscriptionId": "subid", + "WorkbookRequest": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "workbook": { + "name": "Blah Blah Blah", + "serialziedData": "{\"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}", + "version": "ME", + "kind": "shared", + "location": "west us", + "category": "workbook", + "timeModified": null, + "userId": "57af263f-ae5e-46ea-9442-e0bcaff3e7f6", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": [ + "TagSample01", + "TagSample02" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "Blah Blah Blah", + "serialziedData": "{\"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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json new file mode 100644 index 000000000000..d489a8ba9e66 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960" + }, + "responses": { + "200": { + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json new file mode 100644 index 000000000000..1f0c66413e39 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "location": "west us", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" + }, + "responses": { + "200": { + "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "Blah Blah Blah", + "serialziedData": "{\"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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "sharedType": "shared", + "category": "workbook", + "timeModified": null, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json new file mode 100644 index 000000000000..b0a8e1ed475f --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" + }, + "responses": { + "200": { + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json new file mode 100644 index 000000000000..cb9e52db7136 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "workbookProperties": { + "name": "Blah Blah Blah", + "serialziedData": "{\"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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "location": "west us", + "category": "workbook", + "timeModified": null, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + }, + "responses": { + "200": { + "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "Blah Blah Blah", + "serialziedData": "{\"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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json new file mode 100644 index 000000000000..7a65ff1a8df4 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "workbookProperties": { + "name": "Blah Blah Blah", + "serialziedData": "{\"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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "location": "west us", + "category": "workbook", + "timeModified": null, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + }, + "responses": { + "200": { + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json new file mode 100644 index 000000000000..985169b9e345 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "location": "west us", + "category": "workbook" + }, + "responses": { + "200": { + "body": [ + { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "My Workbook 1", + "serialziedData": "{\"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}", + "version": "ME", + "workbookId": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "kind": "shared", + "timeModified": "2018-01-31T23:56:16.008902Z", + "tags": [], + "category": "workbook" + }, + { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "My Workbook 2", + "serialziedData": "{\"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}", + "version": "Search", + "workbookId": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "kind": "shared", + "timeModified": "2018-01-31T23:59:25.4594264Z", + "tags": ["SampleTag01", "SampleTag2"], + "category": "workbook" + } + ] + } + } +} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json new file mode 100644 index 000000000000..2d58b918e7b7 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "category": "workbook", + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "canFetchWorkbook": true, + "tags": [] + }, + "responses": { + "200": { + "body": [ + { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "My Workbook 1", + "serialziedData": "{\"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}", + "version": "ME", + "workbookId": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "kind": "shared", + "timeModified": "2018-01-31T23:56:16.008902Z", + "tags": [], + "category": "workbook" + }, + { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "My Workbook 2", + "serialziedData": "{\"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}", + "version": "Search", + "workbookId": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "kind": "shared", + "timeModified": "2018-01-31T23:59:25.4594264Z", + "tags": ["SampleTag01", "SampleTag2"], + "category": "workbook" + } + ] + } + } +} \ No newline at end of file From 2e97001ac4b7e194ca2ab7cd6e98984764bafc18 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 20 Mar 2018 15:10:16 -0700 Subject: [PATCH 20/50] Fixed all validation errors for examples --- .../2015-05-01/linkedWorkbooks_API.json | 380 ------ .../2015-05-01/examples/WorkbookAdd.json | 95 +- .../2015-05-01/examples/WorkbookGet.json | 60 +- .../examples/WorkbookResponseOnly.json | 23 +- .../2015-05-01/examples/WorkbookUpdate.json | 90 +- .../examples/WorkbookUpdateLink.json | 57 +- .../2015-05-01/examples/WorkbooksList.json | 88 +- .../examples/WorkbooksListLink.json | 92 +- .../2015-05-01/linkedWorkbooks_API.json | 380 ------ .../stable/2015-05-01/workbooks_API.json | 1024 ++++++++++------- 10 files changed, 854 insertions(+), 1435 deletions(-) delete mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/linkedWorkbooks_API.json delete mode 100644 specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/linkedWorkbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/linkedWorkbooks_API.json deleted file mode 100644 index 1230d15bffcb..000000000000 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/linkedWorkbooks_API.json +++ /dev/null @@ -1,380 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "ApplicationInsightsManagementClient", - "description": "Azure Application Insights workbook type.", - "version": "2015-05-01" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/providers/microsoft.insights/workbooks/category/{category}": { - "get": { - "description": "Gets a list of workbooks.", - "operationId": "Workbooks_ListBySourceId", - "parameters": [ - { - "$ref": "#/parameters/SourceIdParameter" - }, - { - "$ref": "#/parameters/CategoryParameter" - }, - { - "$ref": "#/parameters/TagsParameter" - }, - { - "$ref": "#/parameters/CanFetchWorkbookContentParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "A list containing 0 or more workbook definitions.", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Workbook" - } - } - } - }, - "x-ms-examples": { - "WorkbooksList": { - "$ref": "./examples/WorkbooksListLink.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/resourceName/{resourceName}/providers/microsoft.insights/workbooks": { - "put": { - "description": "Create a new workbook.", - "operationId": "Workbook_CreateLink", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ResourceNameParameter" - }, - { - "$ref": "#/parameters/SourceIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The link has been created." - } - }, - "x-ms-examples": { - "WorkbookAdd": { - "$ref": "./examples/LinkedWorkbookResponseOnly.json" - } - } - }, - "patch": { - "description": "Updates a workbook that has already been added.", - "operationId": "Workbook_UpdateLink", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ResourceNameParameter" - }, - { - "$ref": "#/parameters/SourceIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The workbook definition updated." - } - }, - "x-ms-examples": { - "WorkbookAdd": { - "$ref": "./examples/LinkedWorkbookResponseOnly.json" - } - } - }, - "delete": { - "description": "Delete a workbook.", - "operationId": "Workbook_DeleteLink", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The workbook link has been successfully deleted." - } - }, - "x-ms-examples": { - "WorkbookList": { - "$ref": "./examples/WorkbookResponseOnly.json" - } - } - } - } - }, - "definitions": { - "Resource": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" - }, - "name": { - "type": "string", - "description": "Azure resource name", - "readOnly": true - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" - }, - "location": { - "type": "string", - "description": "Resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true, - "description": "An azure resource object" - }, - "Workbook": { - "description": "An Application Insights workbook definition.", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "kind": { - "type": "string", - "description": "The kind of workbook. Choices are user and shared.", - "default": "shared", - "enum": [ - "user", - "shared" - ], - "x-ms-enum": { - "name": "SharedTypeKind", - "modelAsString": false - } - }, - "properties": { - "x-ms-client-flatten": true, - "description": "Metadata describing a web test for an Azure resource.", - "$ref": "#/definitions/WorkbookProperties" - } - } - }, - "WorkbookProperties": { - "description": "Properties that contain a workbook.", - "required": [ - "name", - "kind", - "category", - "workbookId", - "serializedData", - "userId" - ], - "properties": { - "name": { - "type": "string", - "description": "The user-defined name of the workbook." - }, - "serializedData": { - "type": "string", - "description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON" - }, - "version": { - "type": "string", - "description": "This instance's version of the data model. This can change as new features are added that can be marked workbook." - }, - "workbookId": { - "type": "string", - "description": "Internally assigned unique id of the workbook definition. This will be a resource name.", - "readOnly": true - }, - "kind": { - "description": "Enum indicating if this workbook definition is owned by a specific user or is shared between all users with access to the Application Insights component.", - "x-ms-client-name": "SharedTypeKind", - "default": "shared", - "type": "string", - "enum": [ - "shared", - "user" - ], - "x-ms-enum": { - "name": "SharedTypeKind", - "modelAsString": false - } - }, - "timeModified": { - "type": "string", - "description": "Date and time in UTC of the last modification that was made to this workbook definition.", - "readOnly": true - }, - "category": { - "type": "string", - "description": "Workbook category, as defined by the user at creation time." - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of 0 or more tags that are associated with this workbook definition" - }, - "userId": { - "type": "string", - "readOnly": true, - "description": "Unique user id of the specific user that owns this workbook." - } - } - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The Azure subscription ID." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of Azure resource group.", - "x-ms-parameter-location": "method" - }, - "ResourceNameParameter": { - "name": "resourceName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of Azure resource.", - "x-ms-parameter-location": "method" - }, - "SourceIdParameter": { - "name": "sourceId", - "in": "query", - "required": true, - "type": "string", - "description": "Azure Resource Id that will fetch all linked workbooks.", - "x-ms-parameter-location": "method" - }, - "CategoryParameter": { - "name": "category", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "workbook", - "TSG", - "performance", - "retention" - ], - "x-ms-enum": { - "name": "CategoryType", - "modelAsString": true - }, - "description": "Category of workbook to return. When left out, the source type defaults to 'other' (not present in this enum).", - "x-ms-parameter-location": "method" - }, - "CanFetchWorkbookContentParameter": { - "name": "canFetchContent", - "in": "query", - "required": false, - "type": "boolean", - "description": "Flag indicating whether or not to return the full content for each applicable workbook. If false, only return summary content for workbooks.", - "x-ms-parameter-location": "method" - }, - "TagsParameter": { - "name": "tags", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "csv", - "description": "Tags presents on each workbook returned.", - "x-ms-parameter-location": "method" - } - } -} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json index 903a56169449..778c5c6c86c7 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAdd.json @@ -1,46 +1,51 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "resourceGroupName": "my-resource-group", - "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "subscriptionId": "subid", - "WorkbookRequest": { - "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", - "workbook": { - "name": "Blah Blah Blah", - "serialziedData": "{\"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}", - "version": "ME", - "kind": "shared", - "location": "west us", - "category": "workbook", - "timeModified": null, - "userId": "57af263f-ae5e-46ea-9442-e0bcaff3e7f6", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "tags": [ - "TagSample01", - "TagSample02" - ] - } - } - }, - "responses": { - "200": { - "body": { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "type": "", - "location": "westus", - "name": "Blah Blah Blah", - "serialziedData": "{\"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}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null, - "tags": [ - "TagSample01", - "TagSample02" - ] - } - } - } +{ + "parameters": { + "api-version": "2015-05-01", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "subscriptionId": "subid", + "workbookProperties": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "location": "west us", + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "name": "Blah Blah Blah", + "userId": "userId", + "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}", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + }, + "responses": { + "200": { + "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + } + } } \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json index 148f80f6c145..d9157e52a3e2 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookGet.json @@ -1,29 +1,33 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "location": "west us", - "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" - }, - "responses": { - "200": { - "body": { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "type": "", - "location": "westus", - "name": "Blah Blah Blah", - "serialziedData": "{\"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}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "sharedType": "shared", - "category": "workbook", - "timeModified": null, - "tags": [ - "TagSample01", - "TagSample02" - ] - } - } - } +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "location": "west us", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" + }, + "responses": { + "200": { + "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "type": "", + "location": "westus", + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, + "tags": [ + "TagSample01", + "TagSample02" + ] + } + } + } } \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json index f3fd41a1026c..0f9a990fed11 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json @@ -1,12 +1,13 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" - }, - "responses": { - "200": { - } - } +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "location": "us west", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" + }, + "responses": { + "200": { + } + } } \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json index 4fe88fbaad41..224b0a384683 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdate.json @@ -1,42 +1,50 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", - "workbookProperties": { - "name": "Blah Blah Blah", - "serialziedData": "{\"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}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "location": "west us", - "category": "workbook", - "timeModified": null, - "tags": [ - "TagSample01", - "TagSample02" - ] - } - }, - "responses": { - "200": { - "body": { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "type": "", - "location": "westus", - "name": "Blah Blah Blah", - "serialziedData": "{\"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}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null, - "tags": [ - "TagSample01", - "TagSample02" - ] - } - } - } +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "workbookProperties": { + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "location": "west us", + "tags": [ + "TagSample01", + "TagSample02" + ], + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } +} + }, + "responses": { + "200": { + "body": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": [ + "TagSample01", + "TagSample02" + ], + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + } + } + } } \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json index 07e512353cad..f09716fdda97 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookUpdateLink.json @@ -1,27 +1,32 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", - "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", - "workbookProperties": { - "name": "Blah Blah Blah", - "serialziedData": "{\"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}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "location": "west us", - "category": "workbook", - "timeModified": null, - "tags": [ - "TagSample01", - "TagSample02" - ] - } - }, - "responses": { - "200": { - } - } +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "workbookProperties": { + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "location": "west us", + "timeModified": null, + "tags": [ + "TagSample01", + "TagSample02" + ], + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + } + }, + "responses": { + "200": { + } + } } \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json index f20e8f25907e..cce58d048c0c 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksList.json @@ -1,41 +1,49 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "location": "west us", - "category": "workbook" - }, - "responses": { - "200": { - "body": [ - { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "type": "", - "location": "westus", - "name": "My Workbook 1", - "serialziedData": "{\"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}", - "version": "ME", - "workbookId": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "kind": "shared", - "timeModified": "2018-01-31T23:56:16.008902Z", - "tags": [], - "category": "workbook" - }, - { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "type": "", - "location": "westus", - "name": "My Workbook 2", - "serialziedData": "{\"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}", - "version": "Search", - "workbookId": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", - "kind": "shared", - "timeModified": "2018-01-31T23:59:25.4594264Z", - "tags": ["SampleTag01", "SampleTag2"], - "category": "workbook" - } - ] - } - } +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "location": "west us", + "category": "workbook" + }, + "responses": { + "200": { + "body": [ + { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": [], + "properties": { + "name": "My Workbook 1", + "userId": "userId", + "serializedData": "{\"verion\":\"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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + }, + { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": ["SampleTag01", "SampleTag2"], + "properties": { + "name": "My Workbook 2", + "userId": "userId", + "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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + } + ] + } + } } \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json index db45268d34ce..5a3cc811504a 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbooksListLink.json @@ -1,43 +1,51 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "category": "workbook", - "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", - "canFetchWorkbook": true, - "tags": [] - }, - "responses": { - "200": { - "body": [ - { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "type": "", - "location": "westus", - "name": "My Workbook 1", - "serialziedData": "{\"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}", - "version": "ME", - "workbookId": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "kind": "shared", - "timeModified": "2018-01-31T23:56:16.008902Z", - "tags": [], - "category": "workbook" - }, - { - "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "type": "", - "location": "westus", - "name": "My Workbook 2", - "serialziedData": "{\"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}", - "version": "Search", - "workbookId": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", - "kind": "shared", - "timeModified": "2018-01-31T23:59:25.4594264Z", - "tags": ["SampleTag01", "SampleTag2"], - "category": "workbook" - } - ] - } - } +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "category": "workbook", + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "canFetchWorkbook": true, + "tags": [] + }, + "responses": { + "200": { + "body": [ + { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": [], + "properties": { + "name": "My Workbook 1", + "userId": "userId", + "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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + }, + { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "type": "", + "location": "westus", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "tags": ["SampleTag01", "SampleTag2"], + "properties": { + "name": "My Workbook 2", + "userId": "userId", + "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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } + } + ] + } + } } \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json deleted file mode 100644 index b23a1400cd1b..000000000000 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/linkedWorkbooks_API.json +++ /dev/null @@ -1,380 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "ApplicationInsightsManagementClient", - "description": "Azure Application Insights workbook type.", - "version": "2015-05-01" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/providers/microsoft.insights/workbooks/category/{category}": { - "get": { - "description": "Gets a list of workbooks.", - "operationId": "Workbooks_ListBySourceId", - "parameters": [ - { - "$ref": "#/parameters/SourceIdParameter" - }, - { - "$ref": "#/parameters/CategoryParameter" - }, - { - "$ref": "#/parameters/TagsParameter" - }, - { - "$ref": "#/parameters/CanFetchWorkbookContentParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "A list containing 0 or more workbook definitions.", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Workbook" - } - } - } - }, - "x-ms-examples": { - "WorkbooksList": { - "$ref": "./examples/WorkbooksListLink.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/resourceName/{resourceName}/providers/microsoft.insights/workbooks": { - "put": { - "description": "Create a new workbook.", - "operationId": "Workbook_CreateLink", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ResourceNameParameter" - }, - { - "$ref": "#/parameters/SourceIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The link has been created." - } - }, - "x-ms-examples": { - "WorkbookAdd": { - "$ref": "./examples/LinkedWorkbookResponseOnly.json" - } - } - }, - "patch": { - "description": "Updates a workbook that has already been added.", - "operationId": "Workbook_UpdateLink", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ResourceNameParameter" - }, - { - "$ref": "#/parameters/SourceIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The workbook definition updated." - } - }, - "x-ms-examples": { - "WorkbookAdd": { - "$ref": "./examples/LinkedWorkbookResponseOnly.json" - } - } - }, - "delete": { - "description": "Delete a workbook.", - "operationId": "Workbook_DeleteLink", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The workbook link has been successfully deleted." - } - }, - "x-ms-examples": { - "WorkbookList": { - "$ref": "./examples/WorkbookResponseOnly.json" - } - } - } - } - }, - "definitions": { - "Resource": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" - }, - "name": { - "type": "string", - "description": "Azure resource name", - "readOnly": true - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" - }, - "location": { - "type": "string", - "description": "Resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true, - "description": "An azure resource object" - }, - "Workbook": { - "description": "An Application Insights workbook definition.", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "kind": { - "type": "string", - "description": "The kind of workbook. Choices are user and shared.", - "default": "shared", - "enum": [ - "user", - "shared" - ], - "x-ms-enum": { - "name": "SharedTypeKind", - "modelAsString": false - } - }, - "properties": { - "x-ms-client-flatten": true, - "description": "Metadata describing a web test for an Azure resource.", - "$ref": "#/definitions/WorkbookProperties" - } - } - }, - "WorkbookProperties": { - "description": "Properties that contain a workbook.", - "required": [ - "name", - "kind", - "category", - "workbookId", - "serializedData", - "userId" - ], - "properties": { - "name": { - "type": "string", - "description": "The user-defined name of the workbook." - }, - "serializedData": { - "type": "string", - "description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON" - }, - "version": { - "type": "string", - "description": "This instance's version of the data model. This can change as new features are added that can be marked workbook." - }, - "workbookId": { - "type": "string", - "description": "Internally assigned unique id of the workbook definition. This will be a resource name.", - "readOnly": true - }, - "kind": { - "description": "Enum indicating if this workbook definition is owned by a specific user or is shared between all users with access to the Application Insights component.", - "x-ms-client-name": "SharedTypeKind", - "default": "shared", - "type": "string", - "enum": [ - "shared", - "user" - ], - "x-ms-enum": { - "name": "SharedTypeKind", - "modelAsString": false - } - }, - "timeModified": { - "type": "string", - "description": "Date and time in UTC of the last modification that was made to this workbook definition.", - "readOnly": true - }, - "category": { - "type": "string", - "description": "Workbook category, as defined by the user at creation time." - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of 0 or more tags that are associated with this workbook definition" - }, - "userId": { - "type": "string", - "readOnly": true, - "description": "Unique user id of the specific user that owns this workbook." - } - } - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The Azure subscription ID." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of Azure resource group.", - "x-ms-parameter-location": "method" - }, - "ResourceNameParameter": { - "name": "resourceName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of Azure resource.", - "x-ms-parameter-location": "method" - }, - "SourceIdParameter": { - "name": "sourceId", - "in": "query", - "required": true, - "type": "string", - "description": "Azure Resource Id that will fetch all linked workbooks.", - "x-ms-parameter-location": "method" - }, - "CategoryParameter": { - "name": "category", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "workbook", - "TSG", - "performance", - "retention" - ], - "x-ms-enum": { - "name": "CategoryType", - "modelAsString": true - }, - "description": "Category of workbook to return. When left out, the source type defaults to 'other' (not present in this enum).", - "x-ms-parameter-location": "method" - }, - "CanFetchWorkbookContentParameter": { - "name": "canFetchContent", - "in": "query", - "required": false, - "type": "boolean", - "description": "Flag indicating whether or not to return the full content for each applicable workbook. If false, only return summary content for workbooks.", - "x-ms-parameter-location": "method" - }, - "TagsParameter": { - "name": "tags", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "csv", - "description": "Tags presents on each workbook returned.", - "x-ms-parameter-location": "method" - } - } -} \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json index 9670cb513fb7..76943adba86a 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json @@ -1,443 +1,583 @@ -{ - "swagger": "2.0", - "info": { - "title": "ApplicationInsightsManagementClient", - "description": "Azure Application Insights workbook type.", - "version": "2015-05-01" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow.", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/locations/{location}/providers/microsoft.insights/workbooks/category/{category}": { - "get": { - "description": "Get all Workbooks defined within a specified resource group and category.", - "operationId": "Workbooks_ListByResourceGroup", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - }, - { - "$ref": "#/parameters/CategoryParameter" - }, - { - "$ref": "#/parameters/TagsParameter" - }, - { - "$ref": "#/parameters/CanFetchWorkbookContentParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "A list containing 0 or more workbook definitions.", - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Workbook" - } - } - } - }, - "x-ms-examples": { - "WorkbooksList": { - "$ref": "./examples/WorkbooksList.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/locations/{location}/providers/microsoft.insights/workbooks/{resourceName}": { - "get": { - "description": "Get a single workbook by its resourceName.", - "operationId": "Workbooks_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - }, - { - "$ref": "#/parameters/ResourceNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "A workbook definition.", - "schema": { - "$ref": "#/definitions/Workbook" - } - } - }, - "x-ms-examples": { - "WorkbookGet": { - "$ref": "./examples/WorkbookGet.json" - } - } - }, - "delete": { - "description": "Delete a workbook.", - "operationId": "Workbooks_Delete", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ResourceNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The workbook has been successfully deleted." - } - }, - "x-ms-examples": { - "WorkbookList": { - "$ref": "./examples/WorkbookResponseOnly.json" - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { - "put": { - "description": "Create a new workbook.", - "operationId": "Workbooks_Create", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ResourceNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "WorkbookPayload", - "description": "Properties that need to be specified to create a new workbook.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Workbook" - } - } - ], - "responses": { - "200": { - "description": "The newly created workbook.", - "schema": { - "$ref": "#/definitions/Workbook" - } - } - }, - "x-ms-examples": { - "WorkbookAdd": { - "$ref": "./examples/WorkbookAdd.json" - } - } - }, - "patch": { - "description": "Updates a workbook that has already been added.", - "operationId": "Workbooks_Update", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/ResourceNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "WorkbookPayload", - "description": "Properties that need to be specified to create a new workbook.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Workbook" - } - } - ], - "responses": { - "200": { - "description": "The workbook definition updated.", - "schema": { - "$ref": "#/definitions/Workbook" - } - } - }, - "x-ms-examples": { - "WorkbookList": { - "$ref": "./examples/WorkbookUpdate.json" - } - } - } - } - }, - "definitions": { - "Resource": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Azure resource Id" - }, - "name": { - "type": "string", - "description": "Azure resource name", - "readOnly": true - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Azure resource type" - }, - "location": { - "type": "string", - "description": "Resource location", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true, - "description": "An azure resource object" - }, - "Workbook": { - "description": "An Application Insights workbook definition.", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "kind": { - "type": "string", - "description": "The kind of workbook. Choices are user and shared.", - "default": "shared", - "enum": [ - "user", - "shared" - ], - "x-ms-enum": { - "name": "SharedTypeKind", - "modelAsString": false - } - }, - "properties": { - "x-ms-client-flatten": true, - "description": "Metadata describing a web test for an Azure resource.", - "$ref": "#/definitions/WorkbookProperties" - } - } - }, - "WorkbookProperties": { - "description": "Properties that contain a workbook.", - "required": [ - "name", - "kind", - "category", - "workbookId", - "serializedData", - "userId" - ], - "properties": { - "name": { - "type": "string", - "description": "The user-defined name of the workbook." - }, - "serializedData": { - "type": "string", - "description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON" - }, - "version": { - "type": "string", - "description": "This instance's version of the data model. This can change as new features are added that can be marked workbook." - }, - "workbookId": { - "type": "string", - "description": "Internally assigned unique id of the workbook definition.", - "readOnly": true - }, - "kind": { - "description": "Enum indicating if this workbook definition is owned by a specific user or is shared between all users with access to the Application Insights component.", - "x-ms-client-name": "SharedTypeKind", - "default": "shared", - "type": "string", - "enum": [ - "shared", - "user" - ], - "x-ms-enum": { - "name": "SharedTypeKind", - "modelAsString": false - } - }, - "timeModified": { - "type": "string", - "description": "Date and time in UTC of the last modification that was made to this workbook definition.", - "readOnly": true - }, - "category": { - "type": "string", - "description": "Workbook category, as defined by the user at creation time." - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of 0 or more tags that are associated with this workbook definition" - }, - "userId": { - "type": "string", - "readOnly": true, - "description": "Unique user id of the specific user that owns this workbook." - } - } - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The Azure subscription ID." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group.", - "x-ms-parameter-location": "method" - }, - "ResourceNameParameter": { - "name": "resourceName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Application Insights workbook resource.", - "x-ms-parameter-location": "method" - }, - "LocationParameter": { - "name": "location", - "in": "path", - "required": true, - "type": "string", - "description": "The name of location where workbook is stored.", - "x-ms-parameter-location": "method" - }, - "CategoryParameter": { - "name": "category", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "workbook", - "TSG", - "performance", - "retention" - ], - "x-ms-enum": { - "name": "CategoryType", - "modelAsString": true - }, - "description": "Category of workbook to return.", - "x-ms-parameter-location": "method" - }, - "CanFetchWorkbookContentParameter": { - "name": "canFetchContent", - "in": "query", - "required": false, - "type": "boolean", - "description": "Flag indicating whether or not to return the full content for each applicable workbook. If false, only return summary content for workbooks.", - "x-ms-parameter-location": "method" - }, - "TagsParameter": { - "name": "tags", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "csv", - "description": "Tags presents on each workbook returned.", - "x-ms-parameter-location": "method" - } - } +{ + "swagger": "2.0", + "info": { + "title": "ApplicationInsightsManagementClient", + "description": "Azure Application Insights workbook type.", + "version": "2015-05-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/locations/{location}/providers/microsoft.insights/workbooks/category/{category}": { + "get": { + "description": "Get all Workbooks defined within a specified resource group and category.", + "operationId": "Workbooks_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/CategoryParameter" + }, + { + "$ref": "#/parameters/TagsParameter" + }, + { + "$ref": "#/parameters/CanFetchWorkbookContentParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more workbook definitions.", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Workbook" + } + } + } + }, + "x-ms-examples": { + "WorkbooksList": { + "$ref": "./examples/WorkbooksList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/locations/{location}/providers/microsoft.insights/workbooks/{resourceName}": { + "get": { + "description": "Get a single workbook by its resourceName.", + "operationId": "Workbooks_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A workbook definition.", + "schema": { + "$ref": "#/definitions/Workbook" + } + } + }, + "x-ms-examples": { + "WorkbookGet": { + "$ref": "./examples/WorkbookGet.json" + } + } + }, + "delete": { + "description": "Delete a workbook.", + "operationId": "Workbooks_Delete", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The workbook has been successfully deleted." + } + }, + "x-ms-examples": { + "WorkbookList": { + "$ref": "./examples/WorkbookResponseOnly.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { + "put": { + "description": "Create a new workbook.", + "operationId": "Workbooks_Create", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "workbookProperties", + "description": "Properties that need to be specified to create a new workbook.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Workbook" + } + } + ], + "responses": { + "200": { + "description": "The newly created workbook.", + "schema": { + "$ref": "#/definitions/Workbook" + } + } + }, + "x-ms-examples": { + "WorkbookAdd": { + "$ref": "./examples/WorkbookAdd.json" + } + } + }, + "patch": { + "description": "Updates a workbook that has already been added.", + "operationId": "Workbooks_Update", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "workbookProperties", + "description": "Properties that need to be specified to create a new workbook.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Workbook" + } + } + ], + "responses": { + "200": { + "description": "The workbook definition updated.", + "schema": { + "$ref": "#/definitions/Workbook" + } + } + }, + "x-ms-examples": { + "WorkbookList": { + "$ref": "./examples/WorkbookUpdate.json" + } + } + } + }, + "/providers/microsoft.insights/workbooks/category/{category}": { + "get": { + "description": "Gets a list of workbooks.", + "operationId": "Workbooks_ListBySourceId", + "parameters": [ + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/CategoryParameter" + }, + { + "$ref": "#/parameters/TagsParameter" + }, + { + "$ref": "#/parameters/CanFetchWorkbookContentParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more workbook definitions.", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Workbook" + } + } + } + }, + "x-ms-examples": { + "WorkbooksList": { + "$ref": "./examples/WorkbooksListLink.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/resourceName/{resourceName}/providers/microsoft.insights/workbooks": { + "put": { + "description": "Create a new workbook.", + "operationId": "Workbook_CreateLink", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The link has been created." + } + }, + "x-ms-examples": { + "WorkbookAdd": { + "$ref": "./examples/LinkedWorkbookResponseOnly.json" + } + } + }, + "patch": { + "description": "Updates a workbook that has already been added.", + "operationId": "Workbook_UpdateLink", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The workbook link updated.", + "schema": { + "$ref": "#/definitions/Workbook" + } + } + }, + "x-ms-examples": { + "WorkbookAdd": { + "$ref": "./examples/LinkedWorkbookResponseOnly.json" + } + } + }, + "delete": { + "description": "Delete a workbook.", + "operationId": "Workbook_DeleteLink", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The workbook link has been successfully deleted." + } + }, + "x-ms-examples": { + "WorkbookList": { + "$ref": "./examples/WorkbookResponseOnly.json" + } + } + } + } + }, + "definitions": { + "Resource": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Azure resource Id" + }, + "name": { + "type": "string", + "description": "Azure resource name", + "readOnly": true + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Azure resource type" + }, + "location": { + "type": "string", + "description": "Resource location", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "x-ms-azure-resource": true, + "description": "An azure resource object" + }, + "Workbook": { + "description": "An Application Insights workbook definition.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "kind": { + "type": "string", + "description": "The kind of workbook. Choices are user and shared.", + "enum": [ + "user", + "shared" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": false + } + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Metadata describing a web test for an Azure resource.", + "$ref": "#/definitions/WorkbookProperties" + } + } + }, + "WorkbookProperties": { + "description": "Properties that contain a workbook.", + "required": [ + "name", + "kind", + "category", + "workbookId", + "serializedData", + "userId" + ], + "properties": { + "name": { + "type": "string", + "description": "The user-defined name of the workbook." + }, + "serializedData": { + "type": "string", + "description": "Configuration of this particular workbook. Configuration data is a string containing valid JSON" + }, + "version": { + "type": "string", + "description": "This instance's version of the data model. This can change as new features are added that can be marked workbook." + }, + "workbookId": { + "type": "string", + "description": "Internally assigned unique id of the workbook definition." + }, + "kind": { + "description": "Enum indicating if this workbook definition is owned by a specific user or is shared between all users with access to the Application Insights component.", + "x-ms-client-name": "SharedTypeKind", + "default": "shared", + "type": "string", + "enum": [ + "shared", + "user" + ], + "x-ms-enum": { + "name": "SharedTypeKind", + "modelAsString": false + } + }, + "timeModified": { + "type": "string", + "description": "Date and time in UTC of the last modification that was made to this workbook definition.", + "readOnly": true + }, + "category": { + "type": "string", + "description": "Workbook category, as defined by the user at creation time." + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of 0 or more tags that are associated with this workbook definition" + }, + "userId": { + "type": "string", + "description": "Unique user id of the specific user that owns this workbook." + }, + "sourceResourceId": { + "type": "string", + "description": "Optional resourceId for a source resource." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ResourceNameParameter": { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Application Insights workbook resource.", + "x-ms-parameter-location": "method" + }, + "LocationParameter": { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The name of location where workbook is stored.", + "x-ms-parameter-location": "method" + }, + "CategoryParameter": { + "name": "category", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "workbook", + "TSG", + "performance", + "retention" + ], + "x-ms-enum": { + "name": "CategoryType", + "modelAsString": true + }, + "description": "Category of workbook to return.", + "x-ms-parameter-location": "method" + }, + "SourceIdParameter": { + "name": "sourceId", + "in": "query", + "required": true, + "type": "string", + "description": "Azure Resource Id that will fetch all linked workbooks.", + "x-ms-parameter-location": "method" + }, + "CanFetchWorkbookContentParameter": { + "name": "canFetchContent", + "in": "query", + "required": false, + "type": "boolean", + "description": "Flag indicating whether or not to return the full content for each applicable workbook. If false, only return summary content for workbooks.", + "x-ms-parameter-location": "method" + }, + "TagsParameter": { + "name": "tags", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv", + "description": "Tags presents on each workbook returned.", + "x-ms-parameter-location": "method" + } + } } \ No newline at end of file From 61a643f194aadd279c2191f043aef32d937bfb42 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 20 Mar 2018 15:36:02 -0700 Subject: [PATCH 21/50] Fixed all merge issues. (Fixed all validation errors for examples) --- .../examples/LinkedWorkbookResponseOnly.json | 24 +++++++++---------- .../2015-05-01/examples/WorkbookAddLink.json | 22 ++++++++--------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json index 2ebfc3e31574..bcdfcf46fd1a 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json @@ -1,13 +1,13 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", - "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens" - }, - "responses": { - "200": { - } - } +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens" + }, + "responses": { + "200": { + } + } } \ No newline at end of file diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json index d4854f26d87a..d489a8ba9e66 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json @@ -1,12 +1,12 @@ -{ - "parameters": { - "api-version": "2015-05-01", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960" - }, - "responses": { - "200": { - } - } +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960" + }, + "responses": { + "200": { + } + } } \ No newline at end of file From ab805ce6dcd91e1ced45dda100a2ec86ea553a5c Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 20 Mar 2018 15:38:27 -0700 Subject: [PATCH 22/50] Update workbooks_API.json --- .../stable/2015-05-01/workbooks_API.json | 164 ++++++++++++++++-- 1 file changed, 152 insertions(+), 12 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json index b775d322d35e..75b6104f50f1 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json @@ -164,7 +164,7 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "WorkbookPayload", + "name": "workbookProperties", "description": "Properties that need to be specified to create a new workbook.", "in": "body", "required": true, @@ -204,7 +204,7 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "WorkbookPayload", + "name": "workbookProperties", "description": "Properties that need to be specified to create a new workbook.", "in": "body", "required": true, @@ -227,7 +227,141 @@ } } } - } + }, + "/providers/microsoft.insights/workbooks/category/{category}": { + "get": { + "description": "Gets a list of workbooks.", + "operationId": "Workbooks_ListBySourceId", + "parameters": [ + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/CategoryParameter" + }, + { + "$ref": "#/parameters/TagsParameter" + }, + { + "$ref": "#/parameters/CanFetchWorkbookContentParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A list containing 0 or more workbook definitions.", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/Workbook" + } + } + } + }, + "x-ms-examples": { + "WorkbooksList": { + "$ref": "./examples/WorkbooksListLink.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/resourceName/{resourceName}/providers/microsoft.insights/workbooks": { + "put": { + "description": "Create a new workbook.", + "operationId": "Workbook_CreateLink", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The link has been created." + } + }, + "x-ms-examples": { + "WorkbookAdd": { + "$ref": "./examples/LinkedWorkbookResponseOnly.json" + } + } + }, + "patch": { + "description": "Updates a workbook that has already been added.", + "operationId": "Workbook_UpdateLink", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/SourceIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The workbook link updated.", + "schema": { + "$ref": "#/definitions/Workbook" + } + } + }, + "x-ms-examples": { + "WorkbookAdd": { + "$ref": "./examples/LinkedWorkbookResponseOnly.json" + } + } + }, + "delete": { + "description": "Delete a workbook.", + "operationId": "Workbook_DeleteLink", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The workbook link has been successfully deleted." + } + }, + "x-ms-examples": { + "WorkbookList": { + "$ref": "./examples/WorkbookResponseOnly.json" + } + } + } + } }, "definitions": { "Resource": { @@ -262,9 +396,6 @@ "description": "Resource tags" } }, - "required": [ - "location" - ], "x-ms-azure-resource": true, "description": "An azure resource object" }, @@ -277,9 +408,8 @@ ], "properties": { "kind": { - "type": "string", + "type": "string", "description": "The kind of workbook. Choices are user and shared.", - "default": "shared", "enum": [ "user", "shared" @@ -321,8 +451,7 @@ }, "workbookId": { "type": "string", - "description": "Internally assigned unique id of the workbook definition.", - "readOnly": true + "description": "Internally assigned unique id of the workbook definition." }, "kind": { "description": "Enum indicating if this workbook definition is owned by a specific user or is shared between all users with access to the Application Insights component.", @@ -356,8 +485,11 @@ }, "userId": { "type": "string", - "readOnly": true, "description": "Unique user id of the specific user that owns this workbook." + }, + "sourceResourceId": { + "type": "string", + "description": "Optional resourceId for a source resource." } } } @@ -419,6 +551,14 @@ "description": "Category of workbook to return.", "x-ms-parameter-location": "method" }, + "SourceIdParameter": { + "name": "sourceId", + "in": "query", + "required": true, + "type": "string", + "description": "Azure Resource Id that will fetch all linked workbooks.", + "x-ms-parameter-location": "method" + }, "CanFetchWorkbookContentParameter": { "name": "canFetchContent", "in": "query", @@ -440,4 +580,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} From 4a2bf774f2f9d7f1de71c218dcb0ff6bcb912880 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 20 Mar 2018 15:39:01 -0700 Subject: [PATCH 23/50] Update WorkbookAdd.json --- .../2015-05-01/examples/WorkbookAdd.json | 49 ++++++++++--------- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json index 091945e071d7..52a80d7d0bff 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAdd.json @@ -4,23 +4,24 @@ "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-8bee-4d3b-a059-9be8dac93960", "subscriptionId": "subid", - "WorkbookRequest": { - "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", - "workbook": { + "workbookProperties": { + "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "location": "west us", + "properties": { + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", "name": "Blah Blah Blah", - "serialziedData": "{\"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}", - "version": "ME", + "userId": "userId", + "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}", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", "kind": "shared", - "location": "west us", "category": "workbook", - "timeModified": null, - "userId": "57af263f-ae5e-46ea-9442-e0bcaff3e7f6", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "tags": [ - "TagSample01", - "TagSample02" - ] - } + "timeModified": null + }, + "tags": [ + "TagSample01", + "TagSample02" + ] } }, "responses": { @@ -29,13 +30,17 @@ "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "type": "", "location": "westus", - "name": "Blah Blah Blah", - "serialziedData": "{\"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}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null, + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, "tags": [ "TagSample01", "TagSample02" @@ -43,4 +48,4 @@ } } } -} \ No newline at end of file +} From 0b960ec4a66696de2e8a64f616844bf194e744b1 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 20 Mar 2018 15:39:25 -0700 Subject: [PATCH 24/50] Update WorkbookGet.json --- .../2015-05-01/examples/WorkbookGet.json | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json index 1f0c66413e39..ee8e6576fc9b 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookGet.json @@ -10,15 +10,19 @@ "200": { "body": { "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", "type": "", - "location": "westus", - "name": "Blah Blah Blah", - "serialziedData": "{\"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}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "sharedType": "shared", - "category": "workbook", - "timeModified": null, + "location": "westus", + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + }, "tags": [ "TagSample01", "TagSample02" @@ -26,4 +30,4 @@ } } } -} \ No newline at end of file +} From 7abe2b74540275c1bf7ce310c2dc8fadaaf60f57 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 20 Mar 2018 15:39:49 -0700 Subject: [PATCH 25/50] Update WorkbookResponseOnly.json --- .../stable/2015-05-01/examples/WorkbookResponseOnly.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json index b0a8e1ed475f..15545751f8dd 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json @@ -2,6 +2,7 @@ "parameters": { "api-version": "2015-05-01", "subscriptionId": "subid", + "location": "us west", "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" }, @@ -9,4 +10,4 @@ "200": { } } -} \ No newline at end of file +} From c33cb99e34ed603dc7a018407fb778b70023008c Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 20 Mar 2018 15:40:41 -0700 Subject: [PATCH 26/50] Update WorkbookUpdate.json --- .../2015-05-01/examples/WorkbookUpdate.json | 44 +++++++++++-------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json index cb9e52db7136..683ea27ac5bc 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdate.json @@ -5,19 +5,23 @@ "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "workbookProperties": { - "name": "Blah Blah Blah", - "serialziedData": "{\"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}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", "location": "west us", - "category": "workbook", - "timeModified": null, "tags": [ "TagSample01", "TagSample02" - ] - } + ], + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } +} }, "responses": { "200": { @@ -25,18 +29,22 @@ "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "type": "", "location": "westus", - "name": "Blah Blah Blah", - "serialziedData": "{\"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}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", - "category": "workbook", - "timeModified": null, + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", "tags": [ "TagSample01", "TagSample02" - ] + ], + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } } } } -} \ No newline at end of file +} From e55eef0468ae05cca89049a5d51562e5014628a6 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 20 Mar 2018 15:41:04 -0700 Subject: [PATCH 27/50] Update WorkbookUpdateLink.json --- .../examples/WorkbookUpdateLink.json | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json index 7a65ff1a8df4..683c20fdb82c 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookUpdateLink.json @@ -6,22 +6,27 @@ "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", "workbookProperties": { - "name": "Blah Blah Blah", - "serialziedData": "{\"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}", - "version": "ME", - "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", - "kind": "shared", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", "location": "west us", - "category": "workbook", "timeModified": null, "tags": [ "TagSample01", "TagSample02" - ] + ], + "properties": { + "name": "Blah Blah Blah", + "userId": "userId", + "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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } } }, "responses": { "200": { } } -} \ No newline at end of file +} From 2add5e384d2c95abfb0e5c441f154b23b51a1b4c Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 20 Mar 2018 15:41:26 -0700 Subject: [PATCH 28/50] Update WorkbooksList.json --- .../2015-05-01/examples/WorkbooksList.json | 38 +++++++++++-------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json index 985169b9e345..df7a40fa67be 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksList.json @@ -13,29 +13,37 @@ "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "type": "", "location": "westus", - "name": "My Workbook 1", - "serialziedData": "{\"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}", - "version": "ME", - "workbookId": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "kind": "shared", - "timeModified": "2018-01-31T23:56:16.008902Z", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", "tags": [], - "category": "workbook" + "properties": { + "name": "My Workbook 1", + "userId": "userId", + "serializedData": "{\"verion\":\"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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } }, { "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "type": "", "location": "westus", - "name": "My Workbook 2", - "serialziedData": "{\"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}", - "version": "Search", - "workbookId": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", - "kind": "shared", - "timeModified": "2018-01-31T23:59:25.4594264Z", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", "tags": ["SampleTag01", "SampleTag2"], - "category": "workbook" + "properties": { + "name": "My Workbook 2", + "userId": "userId", + "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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } } ] } } -} \ No newline at end of file +} From 3dd49e739510a67f5e7c46649004f75f3430d9f6 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 20 Mar 2018 15:41:48 -0700 Subject: [PATCH 29/50] Update WorkbooksListLink.json --- .../examples/WorkbooksListLink.json | 38 +++++++++++-------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json index 2d58b918e7b7..56b1c69929b7 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbooksListLink.json @@ -15,29 +15,37 @@ "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "type": "", "location": "westus", - "name": "My Workbook 1", - "serialziedData": "{\"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}", - "version": "ME", - "workbookId": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", - "kind": "shared", - "timeModified": "2018-01-31T23:56:16.008902Z", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", "tags": [], - "category": "workbook" + "properties": { + "name": "My Workbook 1", + "userId": "userId", + "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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } }, { "id": "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", "type": "", "location": "westus", - "name": "My Workbook 2", - "serialziedData": "{\"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}", - "version": "Search", - "workbookId": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", - "kind": "shared", - "timeModified": "2018-01-31T23:59:25.4594264Z", + "name": "deadb33f-8bee-4d3b-a059-9be8dac93960", "tags": ["SampleTag01", "SampleTag2"], - "category": "workbook" + "properties": { + "name": "My Workbook 2", + "userId": "userId", + "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}", + "version": "ME", + "workbookId": "deadb33f-8bee-4d3b-a059-9be8dac93960", + "kind": "shared", + "category": "workbook", + "timeModified": null + } } ] } } -} \ No newline at end of file +} From a16b4b944cb2277d7a8b8c97be43f9fe98108247 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 20 Mar 2018 15:48:49 -0700 Subject: [PATCH 30/50] Removed linkedWorkbooks_API.json reference. --- specification/applicationinsights/resource-manager/readme.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/specification/applicationinsights/resource-manager/readme.md b/specification/applicationinsights/resource-manager/readme.md index 42a4432e26e0..cc3de3b1da19 100644 --- a/specification/applicationinsights/resource-manager/readme.md +++ b/specification/applicationinsights/resource-manager/readme.md @@ -246,7 +246,6 @@ input-file: - Microsoft.Insights/stable/2015-05-01/webTestLocations_API.json - Microsoft.Insights/stable/2015-05-01/webTests_API.json - Microsoft.Insights/stable/2015-05-01/workbooks_API.json -- Microsoft.Insights/stable/2015-05-01/linkedWorkbooks_API.json ``` ### Tag: package-2017-10 @@ -379,8 +378,7 @@ input-file: - ./Microsoft.Insights/stable/2015-05-01/components_API.json - ./Microsoft.Insights/stable/2015-05-01/webTests_API.json - ./Microsoft.Insights/stable/2015-05-01/workbooks_API.json - - ./Microsoft.Insights/stable/2015-05-01/linkedWorkbooks_API.json override-info: title: ApplicationInsightsManagementClient -``` \ No newline at end of file +``` From 171ebd6f2ee185acac9db04c128ae928ce32f667 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Tue, 20 Mar 2018 16:20:39 -0700 Subject: [PATCH 31/50] Update workbooks_API.json --- .../stable/2015-05-01/workbooks_API.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json index 75b6104f50f1..4ffe808068e9 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json @@ -94,7 +94,7 @@ "$ref": "#/parameters/LocationParameter" }, { - "$ref": "#/parameters/ResourceNameParameter" + "$ref": "#/parameters/WorkbookResourceNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -125,7 +125,7 @@ "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ResourceNameParameter" + "$ref": "#/parameters/WorkbookResourceNameParameter" }, { "$ref": "#/parameters/LocationParameter" @@ -158,7 +158,7 @@ "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ResourceNameParameter" + "$ref": "#/parameters/WorkbookResourceNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -198,7 +198,7 @@ "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ResourceNameParameter" + "$ref": "#/parameters/WorkbookResourceNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -279,7 +279,7 @@ "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ResourceNameParameter" + "$ref": "#/parameters/WorkbookResourceNameParameter" }, { "$ref": "#/parameters/SourceIdParameter" @@ -310,7 +310,7 @@ "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ResourceNameParameter" + "$ref": "#/parameters/WorkbookResourceNameParameter" }, { "$ref": "#/parameters/SourceIdParameter" @@ -344,7 +344,7 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceNameParameter" + "$ref": "#/parameters/WorkbookResourceNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -517,12 +517,12 @@ "description": "The name of the resource group.", "x-ms-parameter-location": "method" }, - "ResourceNameParameter": { + "WorkbookResourceNameParameter": { "name": "resourceName", "in": "path", "required": true, "type": "string", - "description": "The name of the Application Insights workbook resource.", + "description": "The name of the Application Insights component resource.", "x-ms-parameter-location": "method" }, "LocationParameter": { From 8ee7a7736a78cc01d8c12464ea8019679b77c514 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 11:20:28 -0700 Subject: [PATCH 32/50] Update workbooks_API.json --- .../stable/2015-05-01/workbooks_API.json | 208 +++++++++++++----- 1 file changed, 150 insertions(+), 58 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json index 76943adba86a..0ceb33d980f5 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json @@ -34,7 +34,7 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/locations/{location}/providers/microsoft.insights/workbooks/category/{category}": { + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks": { "get": { "description": "Get all Workbooks defined within a specified resource group and category.", "operationId": "Workbooks_ListByResourceGroup", @@ -45,7 +45,7 @@ { "$ref": "#/parameters/ResourceGroupNameParameter" }, - { + { "$ref": "#/parameters/LocationParameter" }, { @@ -70,6 +70,12 @@ "$ref": "#/definitions/Workbook" } } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -79,41 +85,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/locations/{location}/providers/microsoft.insights/workbooks/{resourceName}": { - "get": { - "description": "Get a single workbook by its resourceName.", - "operationId": "Workbooks_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - }, - { - "$ref": "#/parameters/ResourceNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "A workbook definition.", - "schema": { - "$ref": "#/definitions/Workbook" - } - } - }, - "x-ms-examples": { - "WorkbookGet": { - "$ref": "./examples/WorkbookGet.json" - } - } - }, + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { "delete": { "description": "Delete a workbook.", "operationId": "Workbooks_Delete", @@ -125,7 +97,7 @@ "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ResourceNameParameter" + "$ref": "#/parameters/WorkbookResourceNameParameter" }, { "$ref": "#/parameters/LocationParameter" @@ -137,6 +109,15 @@ "responses": { "200": { "description": "The workbook has been successfully deleted." + }, + "204": { + "description": "The resource doens't exisit." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -144,9 +125,7 @@ "$ref": "./examples/WorkbookResponseOnly.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { + }, "put": { "description": "Create a new workbook.", "operationId": "Workbooks_Create", @@ -158,7 +137,7 @@ "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ResourceNameParameter" + "$ref": "#/parameters/WorkbookResourceNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -179,6 +158,12 @@ "schema": { "$ref": "#/definitions/Workbook" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -198,7 +183,7 @@ "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ResourceNameParameter" + "$ref": "#/parameters/WorkbookResourceNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -219,6 +204,12 @@ "schema": { "$ref": "#/definitions/Workbook" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -228,7 +219,46 @@ } } }, - "/providers/microsoft.insights/workbooks/category/{category}": { + "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/{resourceName}": { + "get": { + "description": "Get a single workbook by its resourceName.", + "operationId": "Workbooks_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/WorkbookResourceNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A workbook definition.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "WorkbookGet": { + "$ref": "./examples/WorkbookGet.json" + } + } + } + }, + "/providers/microsoft.insights/workbooks": { "get": { "description": "Gets a list of workbooks.", "operationId": "Workbooks_ListBySourceId", @@ -258,6 +288,12 @@ "$ref": "#/definitions/Workbook" } } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -265,12 +301,10 @@ "$ref": "./examples/WorkbooksListLink.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/resourceName/{resourceName}/providers/microsoft.insights/workbooks": { + }, "put": { "description": "Create a new workbook.", - "operationId": "Workbook_CreateLink", + "operationId": "Workbooks_CreateLink", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -279,7 +313,7 @@ "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ResourceNameParameter" + "$ref": "#/parameters/WorkbookResourceNameParameter" }, { "$ref": "#/parameters/SourceIdParameter" @@ -291,6 +325,12 @@ "responses": { "200": { "description": "The link has been created." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -301,7 +341,7 @@ }, "patch": { "description": "Updates a workbook that has already been added.", - "operationId": "Workbook_UpdateLink", + "operationId": "Workbooks_UpdateLink", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -310,7 +350,7 @@ "$ref": "#/parameters/ResourceGroupNameParameter" }, { - "$ref": "#/parameters/ResourceNameParameter" + "$ref": "#/parameters/WorkbookResourceNameParameter" }, { "$ref": "#/parameters/SourceIdParameter" @@ -325,6 +365,12 @@ "schema": { "$ref": "#/definitions/Workbook" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -335,7 +381,7 @@ }, "delete": { "description": "Delete a workbook.", - "operationId": "Workbook_DeleteLink", + "operationId": "Workbooks_DeleteLink", "parameters": [ { "$ref": "#/parameters/ResourceGroupNameParameter" @@ -344,7 +390,7 @@ "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceNameParameter" + "$ref": "#/parameters/WorkbookResourceNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -353,6 +399,15 @@ "responses": { "200": { "description": "The workbook link has been successfully deleted." + }, + "204": { + "description": "The resource doens't exisit." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -492,6 +547,43 @@ "description": "Optional resourceId for a source resource." } } + }, + "ErrorFieldContract": { + "properties": { + "code": { + "type": "string", + "description": "Property level error code." + }, + "message": { + "type": "string", + "description": "Human-readable representation of property-level error." + }, + "target": { + "type": "string", + "description": "Property name." + } + }, + "description": "Error Field contract." + }, + "ErrorResponse": { + "properties": { + "code": { + "type": "string", + "description": "Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response." + }, + "message": { + "type": "string", + "description": "Human-readable representation of the error." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorFieldContract" + }, + "description": "The list of invalid fields send in request, in case of validation error." + } + }, + "description": "Error Body contract." } }, "parameters": { @@ -517,17 +609,17 @@ "description": "The name of the resource group.", "x-ms-parameter-location": "method" }, - "ResourceNameParameter": { + "WorkbookResourceNameParameter": { "name": "resourceName", "in": "path", "required": true, "type": "string", - "description": "The name of the Application Insights workbook resource.", + "description": "The name of the Application Insights component resource.", "x-ms-parameter-location": "method" }, "LocationParameter": { "name": "location", - "in": "path", + "in": "query", "required": true, "type": "string", "description": "The name of location where workbook is stored.", @@ -535,7 +627,7 @@ }, "CategoryParameter": { "name": "category", - "in": "path", + "in": "query", "required": true, "type": "string", "enum": [ @@ -580,4 +672,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} From 7b0ce0ce0e676dddf3a31a69d39af11bb886febd Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 11:20:57 -0700 Subject: [PATCH 33/50] Update WorkbookAddLink.json --- .../stable/2015-05-01/examples/WorkbookAddLink.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json index d489a8ba9e66..410e084dd3a4 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookAddLink.json @@ -7,6 +7,8 @@ }, "responses": { "200": { + }, + "204": { } } -} \ No newline at end of file +} From 5a69bbcd3dd12ff50abe5b0107dadf2a3d32a69d Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 11:21:25 -0700 Subject: [PATCH 34/50] Update WorkbookResponseOnly.json --- .../stable/2015-05-01/examples/WorkbookResponseOnly.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json index 0f9a990fed11..6fc9a744cd7e 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json @@ -8,6 +8,8 @@ }, "responses": { "200": { - } + }, + "204": { + } } -} \ No newline at end of file +} From 466e6f539a438ebdd7421a5cd15d1617fac1337a Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 11:23:18 -0700 Subject: [PATCH 35/50] Update workbooks_API.json --- .../stable/2015-05-01/workbooks_API.json | 190 +++++++++++++----- 1 file changed, 141 insertions(+), 49 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json index 4ffe808068e9..0ceb33d980f5 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json @@ -34,7 +34,7 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/locations/{location}/providers/microsoft.insights/workbooks/category/{category}": { + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks": { "get": { "description": "Get all Workbooks defined within a specified resource group and category.", "operationId": "Workbooks_ListByResourceGroup", @@ -45,7 +45,7 @@ { "$ref": "#/parameters/ResourceGroupNameParameter" }, - { + { "$ref": "#/parameters/LocationParameter" }, { @@ -70,6 +70,12 @@ "$ref": "#/definitions/Workbook" } } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -79,41 +85,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/locations/{location}/providers/microsoft.insights/workbooks/{resourceName}": { - "get": { - "description": "Get a single workbook by its resourceName.", - "operationId": "Workbooks_Get", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - }, - { - "$ref": "#/parameters/WorkbookResourceNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "A workbook definition.", - "schema": { - "$ref": "#/definitions/Workbook" - } - } - }, - "x-ms-examples": { - "WorkbookGet": { - "$ref": "./examples/WorkbookGet.json" - } - } - }, + "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { "delete": { "description": "Delete a workbook.", "operationId": "Workbooks_Delete", @@ -137,6 +109,15 @@ "responses": { "200": { "description": "The workbook has been successfully deleted." + }, + "204": { + "description": "The resource doens't exisit." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -144,9 +125,7 @@ "$ref": "./examples/WorkbookResponseOnly.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}": { + }, "put": { "description": "Create a new workbook.", "operationId": "Workbooks_Create", @@ -179,6 +158,12 @@ "schema": { "$ref": "#/definitions/Workbook" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -219,6 +204,12 @@ "schema": { "$ref": "#/definitions/Workbook" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -228,7 +219,46 @@ } } }, - "/providers/microsoft.insights/workbooks/category/{category}": { + "/subscriptions/{subscriptionId}/providers/microsoft.insights/workbooks/{resourceName}": { + "get": { + "description": "Get a single workbook by its resourceName.", + "operationId": "Workbooks_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/WorkbookResourceNameParameter" + }, + { + "$ref": "#/parameters/LocationParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "A workbook definition.", + "schema": { + "$ref": "#/definitions/Workbook" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "WorkbookGet": { + "$ref": "./examples/WorkbookGet.json" + } + } + } + }, + "/providers/microsoft.insights/workbooks": { "get": { "description": "Gets a list of workbooks.", "operationId": "Workbooks_ListBySourceId", @@ -258,6 +288,12 @@ "$ref": "#/definitions/Workbook" } } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -265,12 +301,10 @@ "$ref": "./examples/WorkbooksListLink.json" } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/resourceName/{resourceName}/providers/microsoft.insights/workbooks": { + }, "put": { "description": "Create a new workbook.", - "operationId": "Workbook_CreateLink", + "operationId": "Workbooks_CreateLink", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -291,6 +325,12 @@ "responses": { "200": { "description": "The link has been created." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -301,7 +341,7 @@ }, "patch": { "description": "Updates a workbook that has already been added.", - "operationId": "Workbook_UpdateLink", + "operationId": "Workbooks_UpdateLink", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -325,6 +365,12 @@ "schema": { "$ref": "#/definitions/Workbook" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -335,7 +381,7 @@ }, "delete": { "description": "Delete a workbook.", - "operationId": "Workbook_DeleteLink", + "operationId": "Workbooks_DeleteLink", "parameters": [ { "$ref": "#/parameters/ResourceGroupNameParameter" @@ -353,6 +399,15 @@ "responses": { "200": { "description": "The workbook link has been successfully deleted." + }, + "204": { + "description": "The resource doens't exisit." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -492,6 +547,43 @@ "description": "Optional resourceId for a source resource." } } + }, + "ErrorFieldContract": { + "properties": { + "code": { + "type": "string", + "description": "Property level error code." + }, + "message": { + "type": "string", + "description": "Human-readable representation of property-level error." + }, + "target": { + "type": "string", + "description": "Property name." + } + }, + "description": "Error Field contract." + }, + "ErrorResponse": { + "properties": { + "code": { + "type": "string", + "description": "Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response." + }, + "message": { + "type": "string", + "description": "Human-readable representation of the error." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorFieldContract" + }, + "description": "The list of invalid fields send in request, in case of validation error." + } + }, + "description": "Error Body contract." } }, "parameters": { @@ -527,7 +619,7 @@ }, "LocationParameter": { "name": "location", - "in": "path", + "in": "query", "required": true, "type": "string", "description": "The name of location where workbook is stored.", @@ -535,7 +627,7 @@ }, "CategoryParameter": { "name": "category", - "in": "path", + "in": "query", "required": true, "type": "string", "enum": [ From cbc9a29aa900cdbc04b52dc61a80c69e5d882e5c Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 11:23:41 -0700 Subject: [PATCH 36/50] Update WorkbookAddLink.json --- .../stable/2015-05-01/examples/WorkbookAddLink.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json index d489a8ba9e66..410e084dd3a4 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookAddLink.json @@ -7,6 +7,8 @@ }, "responses": { "200": { + }, + "204": { } } -} \ No newline at end of file +} From 4b30d563c5abe4871ec9d7439ae2d5d9acbfd505 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 11:23:59 -0700 Subject: [PATCH 37/50] Update WorkbookResponseOnly.json --- .../stable/2015-05-01/examples/WorkbookResponseOnly.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json index 15545751f8dd..6fc9a744cd7e 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json @@ -8,6 +8,8 @@ }, "responses": { "200": { - } + }, + "204": { + } } } From 7a2eba674666ad465a88317fb15ca5e90c9c2dfc Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 11:40:03 -0700 Subject: [PATCH 38/50] Update workbooks_API.json --- .../stable/2015-05-01/workbooks_API.json | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json index 0ceb33d980f5..80d26aeede4b 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json @@ -65,10 +65,7 @@ "200": { "description": "A list containing 0 or more workbook definitions.", "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Workbook" - } + "$ref": "#/definitions/WorkbookListResult" } }, "default": { @@ -303,7 +300,7 @@ } }, "put": { - "description": "Create a new workbook.", + "description": "Create a new workbook link.", "operationId": "Workbooks_CreateLink", "parameters": [ { @@ -453,7 +450,19 @@ }, "x-ms-azure-resource": true, "description": "An azure resource object" - }, + }, + "WorkbookListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Workbook" + }, + "description": "An array of workbooks." + } + }, + "description": "Workbook list result." + }, "Workbook": { "description": "An Application Insights workbook definition.", "allOf": [ From 08eca8cacb5785ecb64d810ee2b08b38cda10088 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 11:40:21 -0700 Subject: [PATCH 39/50] Update workbooks_API.json --- .../stable/2015-05-01/workbooks_API.json | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json index 0ceb33d980f5..80d26aeede4b 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json @@ -65,10 +65,7 @@ "200": { "description": "A list containing 0 or more workbook definitions.", "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/Workbook" - } + "$ref": "#/definitions/WorkbookListResult" } }, "default": { @@ -303,7 +300,7 @@ } }, "put": { - "description": "Create a new workbook.", + "description": "Create a new workbook link.", "operationId": "Workbooks_CreateLink", "parameters": [ { @@ -453,7 +450,19 @@ }, "x-ms-azure-resource": true, "description": "An azure resource object" - }, + }, + "WorkbookListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Workbook" + }, + "description": "An array of workbooks." + } + }, + "description": "Workbook list result." + }, "Workbook": { "description": "An Application Insights workbook definition.", "allOf": [ From 64ac742ca845b005ee68868ec18f61e7ae308281 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 12:00:16 -0700 Subject: [PATCH 40/50] Update workbooks_API.json From 80256d507f93ed25fd002bed79fd95c044cd39a7 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 12:50:54 -0700 Subject: [PATCH 41/50] Update workbooks_API.json --- .../stable/2015-05-01/workbooks_API.json | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json index 80d26aeede4b..4f46aace3ac5 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json @@ -71,7 +71,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/WorkbookErrorResponse" } } }, @@ -113,7 +113,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/WorkbookErrorResponse" } } }, @@ -159,7 +159,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/WorkbookErrorResponse" } } }, @@ -205,7 +205,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/WorkbookErrorResponse" } } }, @@ -244,7 +244,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/WorkbookErrorResponse" } } }, @@ -289,7 +289,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/WorkbookErrorResponse" } } }, @@ -326,7 +326,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/WorkbookErrorResponse" } } }, @@ -366,7 +366,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/WorkbookErrorResponse" } } }, @@ -403,7 +403,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/WorkbookErrorResponse" } } }, @@ -574,7 +574,7 @@ }, "description": "Error Field contract." }, - "ErrorResponse": { + "WorkbookErrorResponse": { "properties": { "code": { "type": "string", @@ -592,7 +592,7 @@ "description": "The list of invalid fields send in request, in case of validation error." } }, - "description": "Error Body contract." + "description": "Error message body that will indicate why the operation failed." } }, "parameters": { From 344b07af1caccde8fdb5784f43cd910ca6e7a702 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 12:51:09 -0700 Subject: [PATCH 42/50] Update workbooks_API.json --- .../stable/2015-05-01/workbooks_API.json | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json index 80d26aeede4b..4f46aace3ac5 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json @@ -71,7 +71,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/WorkbookErrorResponse" } } }, @@ -113,7 +113,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/WorkbookErrorResponse" } } }, @@ -159,7 +159,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/WorkbookErrorResponse" } } }, @@ -205,7 +205,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/WorkbookErrorResponse" } } }, @@ -244,7 +244,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/WorkbookErrorResponse" } } }, @@ -289,7 +289,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/WorkbookErrorResponse" } } }, @@ -326,7 +326,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/WorkbookErrorResponse" } } }, @@ -366,7 +366,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/WorkbookErrorResponse" } } }, @@ -403,7 +403,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/WorkbookErrorResponse" } } }, @@ -574,7 +574,7 @@ }, "description": "Error Field contract." }, - "ErrorResponse": { + "WorkbookErrorResponse": { "properties": { "code": { "type": "string", @@ -592,7 +592,7 @@ "description": "The list of invalid fields send in request, in case of validation error." } }, - "description": "Error Body contract." + "description": "Error message body that will indicate why the operation failed." } }, "parameters": { From d466710d73076ba28b9febe85f2d03542bb8a654 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 13:29:11 -0700 Subject: [PATCH 43/50] Create workbookDelete.json --- .../2015-05-01/examples/workbookDelete.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/workbookDelete.json diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/workbookDelete.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/workbookDelete.json new file mode 100644 index 000000000000..4b7ff91a4b45 --- /dev/null +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/workbookDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "location": "west us", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" + }, + "responses": { + "200": { + }, + "204": { + } + } +} From 7c8c0b0693d8082ecec499fbb7e67721c4fe7c1c Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 13:29:40 -0700 Subject: [PATCH 44/50] Update LinkedWorkbookResponseOnly.json --- .../examples/LinkedWorkbookResponseOnly.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json index bcdfcf46fd1a..264b79c49883 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json @@ -1,13 +1,13 @@ { "parameters": { "api-version": "2015-05-01", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", - "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens" + "linkProperties": { + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "targetId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Insights/workbook/91d51e13-9a1b-49be-9ac0-0927c19b1dbf" + } }, "responses": { "200": { } } -} \ No newline at end of file +} From b3f35f41ee4513fb993848eea835829869c190bd Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 13:30:16 -0700 Subject: [PATCH 45/50] Update WorkbookResponseOnly.json --- .../stable/2015-05-01/examples/WorkbookResponseOnly.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json index 6fc9a744cd7e..754e3a50fde4 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/examples/WorkbookResponseOnly.json @@ -1,7 +1,8 @@ { "parameters": { "api-version": "2015-05-01", - "subscriptionId": "subid", + "sourceId": "azure source id", + "category": "workbook", "location": "us west", "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" From 847e7eb5d283a181195d7a979c448c692e4c7dec Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 13:31:05 -0700 Subject: [PATCH 46/50] Update workbooks_API.json --- .../stable/2015-05-01/workbooks_API.json | 63 +++++++++++-------- 1 file changed, 37 insertions(+), 26 deletions(-) diff --git a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json index 4f46aace3ac5..b365c0b616d4 100644 --- a/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/microsoft.insights/stable/2015-05-01/workbooks_API.json @@ -119,7 +119,7 @@ }, "x-ms-examples": { "WorkbookList": { - "$ref": "./examples/WorkbookResponseOnly.json" + "$ref": "./examples/WorkbookDelete.json" } } }, @@ -304,19 +304,16 @@ "operationId": "Workbooks_CreateLink", "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkbookResourceNameParameter" - }, - { - "$ref": "#/parameters/SourceIdParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "name": "linkProperties", + "description": "Properties that need to be specified to create a workbook link.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LinkProperties" + } } ], "responses": { @@ -341,19 +338,16 @@ "operationId": "Workbooks_UpdateLink", "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkbookResourceNameParameter" - }, - { - "$ref": "#/parameters/SourceIdParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "name": "linkProperties", + "description": "Properties that need to be specified to create a workbook link.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LinkProperties" + } } ], "responses": { @@ -381,13 +375,13 @@ "operationId": "Workbooks_DeleteLink", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "#/parameters/WorkbookResourceNameParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "#/parameters/SourceIdParameter" }, { - "$ref": "#/parameters/WorkbookResourceNameParameter" + "$ref": "#/parameters/CategoryParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -490,6 +484,23 @@ } } }, + "LinkProperties": { + "description": "Contains a sourceId and workbook resource id to link two resources.", + "properties": { + "sourceId": { + "type": "string", + "description": "The source Azure resource id" + }, + "targetId": { + "type": "string", + "description": "The workbook Azure resource id" + }, + "category": { + "type": "string", + "description": "The category of workbook" + } + } + }, "WorkbookProperties": { "description": "Properties that contain a workbook.", "required": [ From 0efeae9fab59cb4babfc0a23892632a9e6de0073 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 13:37:55 -0700 Subject: [PATCH 47/50] Update workbooks_API.json --- .../stable/2015-05-01/workbooks_API.json | 63 +++++++++++-------- 1 file changed, 37 insertions(+), 26 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json index 4f46aace3ac5..b365c0b616d4 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/workbooks_API.json @@ -119,7 +119,7 @@ }, "x-ms-examples": { "WorkbookList": { - "$ref": "./examples/WorkbookResponseOnly.json" + "$ref": "./examples/WorkbookDelete.json" } } }, @@ -304,19 +304,16 @@ "operationId": "Workbooks_CreateLink", "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkbookResourceNameParameter" - }, - { - "$ref": "#/parameters/SourceIdParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "name": "linkProperties", + "description": "Properties that need to be specified to create a workbook link.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LinkProperties" + } } ], "responses": { @@ -341,19 +338,16 @@ "operationId": "Workbooks_UpdateLink", "parameters": [ { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/WorkbookResourceNameParameter" - }, - { - "$ref": "#/parameters/SourceIdParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "name": "linkProperties", + "description": "Properties that need to be specified to create a workbook link.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/LinkProperties" + } } ], "responses": { @@ -381,13 +375,13 @@ "operationId": "Workbooks_DeleteLink", "parameters": [ { - "$ref": "#/parameters/ResourceGroupNameParameter" + "$ref": "#/parameters/WorkbookResourceNameParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "#/parameters/SourceIdParameter" }, { - "$ref": "#/parameters/WorkbookResourceNameParameter" + "$ref": "#/parameters/CategoryParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -490,6 +484,23 @@ } } }, + "LinkProperties": { + "description": "Contains a sourceId and workbook resource id to link two resources.", + "properties": { + "sourceId": { + "type": "string", + "description": "The source Azure resource id" + }, + "targetId": { + "type": "string", + "description": "The workbook Azure resource id" + }, + "category": { + "type": "string", + "description": "The category of workbook" + } + } + }, "WorkbookProperties": { "description": "Properties that contain a workbook.", "required": [ From d7bde1cf36a50d69136f4193851e520148bd804f Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 13:39:15 -0700 Subject: [PATCH 48/50] Create workbookDe --- .../stable/2015-05-01/examples/workbookDe | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/workbookDe diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/workbookDe b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/workbookDe new file mode 100644 index 000000000000..4b7ff91a4b45 --- /dev/null +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/workbookDe @@ -0,0 +1,15 @@ +{ + "parameters": { + "api-version": "2015-05-01", + "subscriptionId": "subid", + "resourceGroupName": "my-resource-group", + "location": "west us", + "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2" + }, + "responses": { + "200": { + }, + "204": { + } + } +} From a957d1b5de83620e40bfbe76a2f1bf99d0f18fa0 Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 13:40:10 -0700 Subject: [PATCH 49/50] Update LinkedWorkbookResponseOnly.json --- .../examples/LinkedWorkbookResponseOnly.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json index bcdfcf46fd1a..264b79c49883 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/LinkedWorkbookResponseOnly.json @@ -1,13 +1,13 @@ { "parameters": { "api-version": "2015-05-01", - "subscriptionId": "subid", - "resourceGroupName": "my-resource-group", - "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", - "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens" + "linkProperties": { + "sourceId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens", + "targetId": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Insights/workbook/91d51e13-9a1b-49be-9ac0-0927c19b1dbf" + } }, "responses": { "200": { } } -} \ No newline at end of file +} From 564b51ff20f0b9255a9270378e977379d4186e5a Mon Sep 17 00:00:00 2001 From: Eric Chong Date: Thu, 29 Mar 2018 13:41:15 -0700 Subject: [PATCH 50/50] Update WorkbookResponseOnly.json --- .../stable/2015-05-01/examples/WorkbookResponseOnly.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json index 6fc9a744cd7e..754e3a50fde4 100644 --- a/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json +++ b/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WorkbookResponseOnly.json @@ -1,7 +1,8 @@ { "parameters": { "api-version": "2015-05-01", - "subscriptionId": "subid", + "sourceId": "azure source id", + "category": "workbook", "location": "us west", "resourceGroupName": "my-resource-group", "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2"