mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Add telemetry for deployment type being selected (#14410)
* Add telemetry for deployment type being selected * Fix build
This commit is contained in:
@@ -132,7 +132,7 @@
|
||||
],
|
||||
"resourceDeploymentTypes": [
|
||||
{
|
||||
"name": "arc.control.create",
|
||||
"name": "arc-controller",
|
||||
"displayName": "%resource.type.azure.arc.display.name%",
|
||||
"description": "%resource.type.azure.arc.description%",
|
||||
"platforms": "*",
|
||||
@@ -144,6 +144,7 @@
|
||||
],
|
||||
"providers": [
|
||||
{
|
||||
"name": "arc-controller",
|
||||
"notebookWizard": {
|
||||
"notebook": "./notebooks/arcDeployment/deploy.arc.data.controller.ipynb",
|
||||
"type": "new-arc-control-plane",
|
||||
@@ -626,7 +627,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "arc.postgres",
|
||||
"name": "arc-postgres",
|
||||
"displayName": "%resource.type.arc.postgres.display.name%",
|
||||
"description": "%resource.type.arc.postgres.description%",
|
||||
"platforms": "*",
|
||||
@@ -637,6 +638,7 @@
|
||||
],
|
||||
"providers": [
|
||||
{
|
||||
"name": "arc-postgres",
|
||||
"notebookWizard": {
|
||||
"notebook": "./notebooks/arcDeployment/deploy.postgres.existing.arc.ipynb",
|
||||
"doneAction": {
|
||||
@@ -912,6 +914,7 @@
|
||||
"SQL Server"
|
||||
],
|
||||
"provider": {
|
||||
"name": "azure-sql-mi_arc-mi",
|
||||
"notebookWizard": {
|
||||
"notebook": "./notebooks/arcDeployment/deploy.sql.existing.arc.ipynb",
|
||||
"doneAction": {
|
||||
|
||||
@@ -24,7 +24,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<arc.IE
|
||||
vscode.window.registerTreeDataProvider('azureArc', treeDataProvider);
|
||||
|
||||
vscode.commands.registerCommand('arc.createController', async () => {
|
||||
await vscode.commands.executeCommand('azdata.resource.deploy', 'arc.control.create', ['arc.control.create']);
|
||||
await vscode.commands.executeCommand('azdata.resource.deploy', 'arc-controller', ['arc-controller']);
|
||||
});
|
||||
|
||||
vscode.commands.registerCommand('arc.connectToController', async () => {
|
||||
|
||||
@@ -150,7 +150,7 @@ export class ControllerDashboardOverviewPage extends DashboardPage {
|
||||
const node = this._controllerModel.treeDataProvider.getControllerNode(this._controllerModel);
|
||||
await vscode.commands.executeCommand('azdata.resource.deploy',
|
||||
'azure-sql-mi', // Default option
|
||||
['azure-sql-mi', 'arc.postgres'], // Type filter
|
||||
['azure-sql-mi', 'arc-postgres'], // Type filter
|
||||
{ 'azure-sql-mi': { 'mi-type': ['arc-mi'] } }, // Options filter
|
||||
{ 'CONTROLLER_NAME': node?.label });
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user