-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Swagger and Examples for shared dashboards to Azure (#5811)
- Loading branch information
1 parent
7a0a2d2
commit cefbe32
Showing
14 changed files
with
1,405 additions
and
0 deletions.
There are no files selected for viewing
152 changes: 152 additions & 0 deletions
152
...manager/Microsoft.Portal/preview/2015-11-01-preview/examples/createOrUpdateDashboard.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
{ | ||
"parameters": { | ||
"dashboardName": "testDashboard", | ||
"resourceGroupName": "testRG", | ||
"api-version": "2015-11-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000", | ||
"dashboard": { | ||
"properties": { | ||
"lenses": { | ||
"aLens": { | ||
"order": 1, | ||
"parts": { | ||
"aPart": { | ||
"position": { | ||
"x": 1, | ||
"y": 2, | ||
"rowSpan": 4, | ||
"colSpan": 3 | ||
} | ||
}, | ||
"bPart": { | ||
"position": { | ||
"x": 5, | ||
"y": 5, | ||
"rowSpan": 6, | ||
"colSpan": 6 | ||
} | ||
} | ||
} | ||
}, | ||
"bLens": { | ||
"order": 2, | ||
"parts": {} | ||
} | ||
}, | ||
"metadata": { | ||
"metadata": { | ||
"X": 4, | ||
"Y": 3, | ||
"RowSpan": 1, | ||
"ColSpan": 2 | ||
} | ||
} | ||
}, | ||
"location": "eastus", | ||
"tags": { | ||
"aKey": "aValue", | ||
"anotherKey": "anotherValue" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"lenses": { | ||
"aLens": { | ||
"order": 1, | ||
"parts": { | ||
"aPart": { | ||
"position": { | ||
"x": 1, | ||
"y": 2, | ||
"rowSpan": 4, | ||
"colSpan": 3 | ||
} | ||
}, | ||
"bPart": { | ||
"position": { | ||
"x": 5, | ||
"y": 5, | ||
"rowSpan": 6, | ||
"colSpan": 6 | ||
} | ||
} | ||
} | ||
}, | ||
"bLens": { | ||
"order": 2, | ||
"parts": {} | ||
} | ||
}, | ||
"metadata": { | ||
"metadata": { | ||
"X": 4, | ||
"Y": 3, | ||
"RowSpan": 1, | ||
"ColSpan": 2 | ||
} | ||
} | ||
}, | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard", | ||
"name": "testDashboard", | ||
"type": "Microsoft.Portal/dashboards", | ||
"location": "eastus", | ||
"tags": { | ||
"aKey": "aValue", | ||
"anotherKey": "anotherValue" | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"lenses": { | ||
"aLens": { | ||
"order": 1, | ||
"parts": { | ||
"aPart": { | ||
"position": { | ||
"x": 1, | ||
"y": 2, | ||
"rowSpan": 4, | ||
"colSpan": 3 | ||
} | ||
}, | ||
"bPart": { | ||
"position": { | ||
"x": 5, | ||
"y": 5, | ||
"rowSpan": 6, | ||
"colSpan": 6 | ||
} | ||
} | ||
} | ||
}, | ||
"bLens": { | ||
"order": 2, | ||
"parts": {} | ||
} | ||
}, | ||
"metadata": { | ||
"metadata": { | ||
"X": 4, | ||
"Y": 3, | ||
"RowSpan": 1, | ||
"ColSpan": 2 | ||
} | ||
} | ||
}, | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard", | ||
"name": "testDashboard", | ||
"type": "Microsoft.Portal/dashboards", | ||
"location": "eastus", | ||
"tags": { | ||
"aKey": "aValue", | ||
"anotherKey": "anotherValue" | ||
} | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...esource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/deleteDashboard.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"dashboardName": "testDashboard", | ||
"resourceGroupName": "testRG", | ||
"api-version": "2015-11-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
...l/resource-manager/Microsoft.Portal/preview/2015-11-01-preview/examples/getDashboard.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"parameters": { | ||
"dashboardName": "testDashboard", | ||
"resourceGroupName": "testRG", | ||
"api-version": "2015-11-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"lenses": { | ||
"aLens": { | ||
"order": 1, | ||
"parts": { | ||
"aPart": { | ||
"position": { | ||
"x": 1, | ||
"y": 2, | ||
"rowSpan": 4, | ||
"colSpan": 3 | ||
} | ||
}, | ||
"bPart": { | ||
"position": { | ||
"x": 5, | ||
"y": 5, | ||
"rowSpan": 6, | ||
"colSpan": 6 | ||
} | ||
} | ||
} | ||
}, | ||
"bLens": { | ||
"order": 2, | ||
"parts": {} | ||
} | ||
}, | ||
"metadata": { | ||
"metadata": { | ||
"X": 4, | ||
"Y": 3, | ||
"RowSpan": 1, | ||
"ColSpan": 2 | ||
} | ||
} | ||
}, | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard", | ||
"name": "testDashboard", | ||
"type": "Microsoft.Portal/dashboards", | ||
"location": "eastus", | ||
"tags": { | ||
"aKey": "aValue", | ||
"anotherKey": "anotherValue" | ||
} | ||
} | ||
} | ||
} | ||
} |
109 changes: 109 additions & 0 deletions
109
...r/Microsoft.Portal/preview/2015-11-01-preview/examples/listDashboardsByResourceGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "testRG", | ||
"api-version": "2015-11-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-000000000000" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"lenses": { | ||
"aLens": { | ||
"order": 1, | ||
"parts": { | ||
"aPart": { | ||
"position": { | ||
"x": 1, | ||
"y": 2, | ||
"rowSpan": 4, | ||
"colSpan": 3 | ||
} | ||
}, | ||
"bPart": { | ||
"position": { | ||
"x": 5, | ||
"y": 5, | ||
"rowSpan": 6, | ||
"colSpan": 6 | ||
} | ||
} | ||
} | ||
}, | ||
"bLens": { | ||
"order": 2, | ||
"parts": {} | ||
} | ||
}, | ||
"metadata": { | ||
"metadata": { | ||
"X": 4, | ||
"Y": 3, | ||
"RowSpan": 1, | ||
"ColSpan": 2 | ||
} | ||
} | ||
}, | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard", | ||
"name": "testDashboard", | ||
"type": "Microsoft.Portal/dashboards", | ||
"location": "eastus", | ||
"tags": { | ||
"aKey": "aValue", | ||
"anotherKey": "anotherValue" | ||
} | ||
}, | ||
{ | ||
"properties": { | ||
"lenses": { | ||
"aLens": { | ||
"order": 1, | ||
"parts": { | ||
"aPart": { | ||
"position": { | ||
"x": 1, | ||
"y": 2, | ||
"rowSpan": 4, | ||
"colSpan": 3 | ||
} | ||
}, | ||
"bPart": { | ||
"position": { | ||
"x": 5, | ||
"y": 5, | ||
"rowSpan": 6, | ||
"colSpan": 6 | ||
} | ||
} | ||
} | ||
}, | ||
"bLens": { | ||
"order": 2, | ||
"parts": {} | ||
} | ||
}, | ||
"metadata": { | ||
"metadata": { | ||
"X": 4, | ||
"Y": 3, | ||
"RowSpan": 1, | ||
"ColSpan": 2 | ||
} | ||
} | ||
}, | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Portal/dashboards/testDashboard2", | ||
"name": "testDashboard2", | ||
"type": "Microsoft.Portal/dashboards", | ||
"location": "eastus", | ||
"tags": { | ||
"aKey": "aValue", | ||
"anotherKey": "anotherValue" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.