Skip to content

Commit

Permalink
Add Swagger and Examples for shared dashboards to Azure (#5811)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjbfour authored and veronicagg committed May 1, 2019
1 parent 7a0a2d2 commit cefbe32
Show file tree
Hide file tree
Showing 14 changed files with 1,405 additions and 0 deletions.
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"
}
}
}
}
}
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": {}
}
}
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"
}
}
}
}
}
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"
}
}
]
}
}
}
}
Loading

0 comments on commit cefbe32

Please sign in to comment.