microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
align-android-launch-command

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/typings/vscode-extension-telemetry/vscode-extension-telemetry.d.ts

40lines · modeblame

6e4d7a62Joshua Skelton10 years ago1declare module "vscode-extension-telemetry" {
2export default class TelemetryReporter {
3private extensionId;
4private extensionVersion;
5private appInsightsClient;
6private commonProperties;
7private static SQM_KEY;
8private static REGISTRY_USERID_VALUE;
9private static REGISTRY_MACHINEID_VALUE;
10
11/**
12* Constructs a new telemetry reporter
13* @param {string} extensionId All events will be prefixed with this event name
14* @param {string} extensionVersion Extension version to be reported with each event
15* @param {string} key The application insights key
16*/
17constructor(extensionId: string, extensionVersion: string, key: string);
18private setupAIClient(client);
19private loadVSCodeCommonProperties(machineId, sessionId, version);
20private loadCommonProperties();
21private addCommonProperties(properties);
22private getWinRegKeyData(key, name, hive, callback);
23
24/**
25* Sends a telemetry event
26* @param {string} eventName The event name
27* @param {object} properties An associative array of strings
28* @param {object} measures An associative array of numbers
29*/
176f99c8ConnorQi014 months ago30sendTelemetryEvent(
31eventName: string,
32properties?: {
33[key: string]: string;
34},
35measures?: {
36[key: string]: number;
37},
38): void;
6e4d7a62Joshua Skelton10 years ago39}
40}