mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
SQL Operations Studio Public Preview 1 (0.23) release source code
This commit is contained in:
137
extensions/insights-default/package.json
Normal file
137
extensions/insights-default/package.json
Normal file
@@ -0,0 +1,137 @@
|
||||
{
|
||||
"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": {
|
||||
"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}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user