Remove unused Telemetry Actions and update comment (#18)

This commit is contained in:
Tanuj Mittal 2020-06-15 10:35:02 -07:00 committed by GitHub
parent 4da0887e5e
commit 3eff440680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
/** /**
* Defines constants related to logging telemetry. This file should be kept in sync with the one in the portal extension code as much as possible. * Defines constants related to logging telemetry. Everything except Action should be kept in sync with the one in the Portal code as much as possible.
* *
* TODO: Move this to ExplorerContracts (265329) * TODO: Move this to ExplorerContracts (265329)
*/ */
@ -8,13 +8,9 @@ export class General {
public static BladeNamePrefix: string = "Extension/Microsoft_Azure_DocumentDB/Blade/"; public static BladeNamePrefix: string = "Extension/Microsoft_Azure_DocumentDB/Blade/";
} }
/** // Data Explorer specific actions. No need to keep this in sync with the one in Portal.
* This is to be kept in sync with the one in portal. Please update the one in the portal if you add/remove any entry.
*/
export enum Action { export enum Action {
CollapseTreeNode, CollapseTreeNode,
CreateDatabaseAccount,
CreateAzureFunction,
CreateCollection, CreateCollection,
CreateDocument, CreateDocument,
CreateStoredProcedure, CreateStoredProcedure,
@ -23,7 +19,6 @@ export enum Action {
DeleteCollection, DeleteCollection,
DeleteDatabase, DeleteDatabase,
DeleteDocument, DeleteDocument,
DownloadQuickstart,
ExpandTreeNode, ExpandTreeNode,
ExecuteQuery, ExecuteQuery,
HasFeature, HasFeature,
@ -33,27 +28,18 @@ export enum Action {
LoadDatabaseAccount, LoadDatabaseAccount,
LoadCollections, LoadCollections,
LoadDatabases, LoadDatabases,
LoadMetrics,
LoadOffers, LoadOffers,
LoadSingleCollectionWithOfferAndStatistics,
MongoShell, MongoShell,
OpenMetrics,
ContextualPane, ContextualPane,
ScaleThroughput, ScaleThroughput,
SelectItem, SelectItem,
SwitchQuickstartPlatform,
Tab, Tab,
UpdateDocument, UpdateDocument,
UpdateRegions,
UpdateSettings, UpdateSettings,
UpdateStoredProcedure, UpdateStoredProcedure,
UpdateTrigger, UpdateTrigger,
UpdateUDF, UpdateUDF,
ViewWarning,
LoadBlade,
LoadResourceTree, LoadResourceTree,
LoadMetricsTab,
AccountLevelThroughput,
CreateDatabase, CreateDatabase,
ResolveConflict, ResolveConflict,
DeleteConflict, DeleteConflict,