Files
azuredatastudio/extensions/insights-default/package.json
Karl Burtram 6ad0df0e3e Refresh master with initial release/0.24 snapshot (#332)
* Initial port of release/0.24 source code

* Fix additional headers

* Fix a typo in launch.json
2017-12-15 15:38:57 -08:00

138 lines
5.0 KiB
JSON

{
"name": "insights-default",
"version": "0.1.0",
"publisher": "Microsoft",
"engines": {
"vscode": "*"
},
"contributes": {
"insights": [
{
"id": "query-data-store-db-insight",
"contrib": {
"name": "Top 5 Slowest Queries",
"provider": "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",
"provider": "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)",
"provider": "MSSQL",
"edition": [0,1,2,3,4],
"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",
"provider": "MSSQL",
"edition": [0,1,2,3,4],
"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}"
}
}
}
}
]
}
}