{ "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}" } } } } ] } }