mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 17:22:48 -05:00
34 lines
1.5 KiB
TypeScript
34 lines
1.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'
|
|
}
|
|
|
|
export enum TelemetryActions {
|
|
// Create Azure Function with Sql Binding from Table
|
|
startCreateAzureFunctionWithSqlBinding = 'startCreateAzureFunctionWithSqlBinding',
|
|
helpCreateAzureFunctionProject = 'helpCreateAzureFunctionProject',
|
|
learnMore = 'learnMore',
|
|
finishCreateAzureFunctionWithSqlBinding = 'finishCreateAzureFunctionWithSqlBinding',
|
|
exitCreateAzureFunctionQuickpick = 'exitCreateAzureFunctionQuickpick',
|
|
|
|
// Add SQL Binding to Azure Function
|
|
startAddSqlBinding = 'startAddSqlBinding',
|
|
getAzureFunctionProject = 'getAzureFunctionProject',
|
|
getBindingType = 'getBindingType',
|
|
getObjectName = 'getObjectName',
|
|
updateConnectionString = 'updateConnectionString',
|
|
finishAddSqlBinding = 'finishAddSqlBinding',
|
|
exitSqlBindingsQuickpick = 'exitSqlBindingsQuickpick',
|
|
}
|