mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
63 lines
2.5 KiB
TypeScript
63 lines
2.5 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
import AdsTelemetryReporter from '@microsoft/ads-extension-telemetry';
|
|
import { getPackageInfo } from './utils';
|
|
|
|
const packageInfo = getPackageInfo()!;
|
|
|
|
export const TelemetryReporter = new AdsTelemetryReporter(packageInfo.name, packageInfo.version, packageInfo.aiKey);
|
|
|
|
export enum TelemetryViews {
|
|
SqlBindingsQuickPick = 'SqlBindingsQuickPick',
|
|
CreateAzureFunctionWithSqlBinding = 'CreateAzureFunctionWithSqlBinding',
|
|
AzureFunctionsUtils = 'AzureFunctionsUtils',
|
|
}
|
|
|
|
export enum TelemetryActions {
|
|
// Create Azure Function with Sql Binding from Table
|
|
startCreateAzureFunctionWithSqlBinding = 'startCreateAzureFunctionWithSqlBinding',
|
|
finishCreateAzureFunctionWithSqlBinding = 'finishCreateAzureFunctionWithSqlBinding',
|
|
exitCreateAzureFunctionQuickpick = 'exitCreateAzureFunctionQuickpick',
|
|
|
|
// Add SQL Binding to Azure Function
|
|
startAddSqlBinding = 'startAddSqlBinding',
|
|
getAzureFunctionProject = 'getAzureFunctionProject',
|
|
getBindingType = 'getBindingType',
|
|
getObjectName = 'getObjectName',
|
|
updateConnectionString = 'updateConnectionString',
|
|
finishAddSqlBinding = 'finishAddSqlBinding',
|
|
exitSqlBindingsQuickpick = 'exitSqlBindingsQuickpick',
|
|
|
|
// Azure Functions Utils
|
|
addSQLNugetPackage = 'addSQLNugetPackage',
|
|
}
|
|
|
|
export enum CreateAzureFunctionStep {
|
|
noAzureFunctionsExtension = 'noAzureFunctionsExtension',
|
|
getAzureFunctionProject = 'getAzureFunctionProject',
|
|
learnMore = 'learnMore',
|
|
helpCreateAzureFunctionProject = 'helpCreateAzureFunctionProject',
|
|
getSelectedFolder = 'getSelectedFolder',
|
|
getBindingType = 'getBindingType',
|
|
launchFromCommandPalette = 'launchFromCommandPalette',
|
|
launchFromObjectExplorer = 'launchFromObjectExplorer',
|
|
getConnectionProfile = 'getConnectionProfile',
|
|
getDatabase = 'getDatabase',
|
|
getObjectName = 'getObjectName',
|
|
getConnectionString = 'getConnectionString',
|
|
getAzureFunctionName = 'getAzureFunctionName',
|
|
getTemplateId = 'getTemplateId',
|
|
getConnectionStringSettingName = 'getConnectionStringSettingName',
|
|
promptForIncludePassword = 'promptForIncludePassword',
|
|
}
|
|
|
|
export enum ExitReason {
|
|
cancelled = 'cancelled',
|
|
finishCreate = 'finishCreate',
|
|
timeout = 'timeout',
|
|
error = 'error',
|
|
exit = 'exit'
|
|
}
|