cosmos-explorer/src/Shared/Telemetry/TelemetryConstants.ts
Tanuj Mittal c4257bf4a9
Revert "Add telemetry for OpenTerminal success/failure (#192)" (#198)
This reverts commit 83b13de6852902c68038c3a0eee0a8d6ad8c1651.
2020-09-11 23:12:28 -07:00

114 lines
2.4 KiB
TypeScript

// Data Explorer specific actions. No need to keep this in sync with the one in Portal.
export enum Action {
CollapseTreeNode,
CreateCollection,
CreateDocument,
CreateStoredProcedure,
CreateTrigger,
CreateUDF,
DeleteCollection,
DeleteDatabase,
DeleteDocument,
ExpandTreeNode,
ExecuteQuery,
HasFeature,
GetVNETServices,
InitializeAccountLocationFromResourceGroup,
InitializeDataExplorer,
LoadDatabaseAccount,
LoadCollections,
LoadDatabases,
LoadOffers,
MongoShell,
ContextualPane,
ScaleThroughput,
SelectItem,
Tab,
UpdateDocument,
UpdateSettings,
UpdateStoredProcedure,
UpdateTrigger,
UpdateUDF,
LoadResourceTree,
CreateDatabase,
ResolveConflict,
DeleteConflict,
SaveQuery,
SetupSavedQueries,
LoadSavedQuery,
DeleteSavedQuery,
ConnectEncryptionToken,
SignInAad,
SignOutAad,
FetchTenants,
FetchSubscriptions,
FetchAccounts,
GetAccountKeys,
LoadingStatus,
AccountSwitch,
SubscriptionSwitch,
TenantSwitch,
DefaultTenantSwitch,
ResetNotebookWorkspace,
CreateNotebookWorkspace,
NotebookErrorNotification,
CreateSparkCluster,
UpdateSparkCluster,
DeleteSparkCluster,
LibraryManage,
ClusterLibraryManage,
ModifyOptionForThroughputWithSharedDatabase,
EnableAzureSynapseLink,
CreateNewNotebook,
OpenSampleNotebook,
ExecuteCell,
ExecuteCellPromptBtn,
ExecuteAllCells,
NotebookEnabled,
NotebooksGitHubConnect,
NotebooksGitHubAuthorize,
NotebooksGitHubManualRepoAdd,
NotebooksGitHubManageRepo,
NotebooksGitHubCommit,
NotebooksGitHubDisconnect
}
export const ActionModifiers = {
Start: "start",
Success: "success",
Failed: "failed",
Mark: "mark",
Open: "open",
IFrameReady: "iframeready",
Close: "close",
Submit: "submit",
IndexAll: "index all properties",
NoIndex: "no indexing",
Cancel: "cancel"
} as const;
export enum SourceBlade {
AddCollection,
AzureFunction,
BrowseCollectionBlade,
CassandraAccountCreateBlade,
CollectionSetting,
DatabaseAccountCreateBlade,
DataExplorer,
DeleteCollection,
DeleteDatabase,
DocumentExplorer,
FirewallVNETBlade,
Metrics,
NonDocumentDBAccountCreateBlade,
OverviewBlade,
QueryExplorer,
Quickstart,
ReaderWarning,
ResourceMenu,
RpcProvider,
ScaleCollection,
ScriptExplorer,
Keys
}