Files
BranislavGrbicMDCS 397f6afaf1 ADS changes for new engine edition (#7695)
* Sql on demand changes

* Formating files

* Removing features for new Engine Edition

* Fixing Restore & Backup issue. Adding support for multiple conditions per flavor

* tabifying

* Formating documents

* Work in progress

* Resolving comments

* Resolving comments.

* Fixing typo
2019-10-22 12:50:15 +02:00

137 lines
5.1 KiB
JSON

{
"name": "insights-default",
"version": "0.1.0",
"publisher": "Microsoft",
"engines": {
"vscode": "*"
},
"contributes": {
"dashboard.insights": [
{
"id": "query-data-store-db-insight",
"contrib": {
"name": "Top 5 Slowest Queries",
"when": "connectionProvider == 'MSSQL'",
"gridItemConfig": {
"x": 2,
"y": 1
},
"type": {
"timeSeries": {
"dataDirection": "horizontal",
"dataType": "point",
"legendPosition": "top",
"labelFirstColumn": false,
"columnsAsLabels": false
}
},
"queryFile": "./sql/qds.sql",
"details": {
"queryFile": "./sql/qds_detail.sql",
"label": {
"icon": "file",
"column": "query_id",
"state": []
},
"value": "max_duration"
}
}
},
{
"id": "table-space-db-insight",
"contrib": {
"name": "Space used per table",
"when": "connectionProvider == 'MSSQL'",
"gridItemConfig": {
"x": 2,
"y": 1
},
"type": {
"horizontalBar": {
"dataDirection": "vertical",
"dataType": "number",
"legendPosition": "top",
"labelFirstColumn": false,
"columnsAsLabels": true
}
},
"queryFile": "./sql/tablespace.sql"
}
},
{
"id": "all-database-size-server-insight",
"contrib": {
"name": "Database Size (MB)",
"when": "connectionProvider == 'MSSQL' && !mssql:iscloud && mssql:engineedition != 11",
"gridItemConfig": {
"x": 2,
"y": 2
},
"type": {
"horizontalBar": {
"dataDirection": "vertical",
"dataType": "number",
"legendPosition": "none",
"columnsAsLabels": true
}
},
"queryFile": "./sql/db_size.sql"
}
},
{
"id": "backup-history-server-insight",
"contrib": {
"cacheId": "backup-history-server-insight",
"name": "Backup Status",
"when": "connectionProvider == 'MSSQL' && !mssql:iscloud && mssql:engineedition != 11",
"gridItemConfig": {
"x": 1,
"y": 1
},
"type": {
"count": null
},
"queryFile": "./sql/backup_insight.sql",
"details": {
"queryFile": "./sql/backup_detail.sql",
"label": {
"icon": "database",
"column": "Database",
"state": [
{
"condition": {
"if": "equals",
"equals": "No backup found"
},
"color": "red"
},
{
"condition": {
"if": "equals",
"equals": "Older than 24hrs"
},
"color": "orange"
},
{
"condition": {
"if": "equals",
"equals": "Within 24hrs"
},
"color": "green"
}
]
},
"value": "Backup_Health",
"actions": {
"types": [
"backup"
],
"database": "${Database}"
}
}
}
}
]
}
}