mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-01 01:25:38 -05:00
Update connection event properties (#14608)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as azdata from 'azdata';
|
||||
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
|
||||
|
||||
export const IAdsTelemetryService = createDecorator<IAdsTelemetryService>('adsTelemetryService');
|
||||
@@ -21,16 +22,6 @@ export interface ITelemetryEventMeasures {
|
||||
[key: string]: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Connection info properties to add into an event.
|
||||
*/
|
||||
export interface ITelemetryConnectionInfo {
|
||||
authenticationType?: string;
|
||||
providerName?: string;
|
||||
serverType?: string;
|
||||
engineType?: string;
|
||||
}
|
||||
|
||||
export interface ITelemetryEvent {
|
||||
/**
|
||||
* Sends the event
|
||||
@@ -51,9 +42,15 @@ export interface ITelemetryEvent {
|
||||
|
||||
/**
|
||||
* Adds additional connection-related information to this event.
|
||||
* @param connectionInfo The connection info to add. Only the fields in TelemetryConnectionInfo are included, all others are ignored.
|
||||
* @param connectionInfo The connection info to add.
|
||||
*/
|
||||
withConnectionInfo(connectionInfo: ITelemetryConnectionInfo): ITelemetryEvent;
|
||||
withConnectionInfo(connectionInfo?: azdata.IConnectionProfile): ITelemetryEvent;
|
||||
|
||||
/**
|
||||
* Adds additional server-related information to this event.
|
||||
* @param serverInfo The server info to add.
|
||||
*/
|
||||
withServerInfo(serverInfo?: azdata.ServerInfo): ITelemetryEvent;
|
||||
}
|
||||
|
||||
export interface ITelemetryInfo {
|
||||
|
||||
Reference in New Issue
Block a user