Files
azuredatastudio/src/sql/platform/telemetry/common/telemetryKeys.ts
Nemanja Milovančević 65ef41d53d UI for the Backup/Restore Managed Instance Feature (#19244)
* Rebase from main branch

* Made mssql a module

* remove rpc specific stuff

* Added create sas RPC call

* Backup to url works now

* Moved createSas RPC to the BlobService

* Relocated createSas RPC from sql-dataprotocolclient to the mssql

* After rebase

* Removed duplicate symbol

* Renamed Blob to AzureBlob and relocated CreateSasResponse to mssql extension

* Removed AzureBlobProvider, removed AzureBlobService feature

* renamed blob to azureblob, converted thenable to promise

* Simplify API

* fixes

* docs update, blob to azureblob update

* UI design first commit

* Detected Managed Instance, trying to script backup to url

* azure subscription api added, but ADS crashes

* Created url dialog component and added link account

* Changed backup component UI logic

* Changed b/r UI, added restore from URL, detected MI from restore component

* Removed mocked and added real Azure API, changed RestoreDialog UI

* Added file fetching API

* added create sas RPC call

* Backup to url works now

* Fixed some bugs

* Moved createSas RPC to the BlobService

* Relocated createSas RPC from sql-dataprotocolclient to the mssql

* Rebase createSas changed to the backupRestoreManagedInstance

* PR comments fix

* Enabled backup to url for gov clouds

* Replaced anchor element with Link class

* Fixed pick azure account logic

* Removed duplicates from eslintrc

* Fixed url browser dialog

* Fixed restore UI, disabled url empty url browser dropdowns, fixed backup OK button

* bumped sts version

* bumped sts version

* Fix config

* Fixed URL browser dialog UX

* Backup and restore dialog fix

* Referencing azure resource types directly

* Scoped url browser dialog css classes

* Made the url browser dialog field a local variable

* moved url browser files from fileBrowser to the urlBrowser folder

* Changed deviceType from number to enum

* Added all device type options

* Moved mssql

* Added MI backup button comment

* Removed unhelpful comment

* Revert differential copy only backup mistake

* Renamed azurebrowser to urlBrowserDialog

* Localize create sas button label

* Removed unnecessary spinner

* Use UTC date instead of locale date

* Removed * and added required flag

* Use async instead of nested thens

* Added target database tooltip

* Using deferred promise instead of event emitter

* Added error handling to the url browser dialog

* Registered backup component elements

* Register backup component listeners

* Removed redundant setDefaultBackupPaths call

* Added setBackupPathList docs

* Add return types

* Remove code from comment

* Register restore dialog elements

* Register restore dialog listeners

* Pass engine edition enum instead of boolean

* Capitalize enum values

* DatabaseEngineEdition fix

* Use DeviceType instead of number

* Use deferred pointer

* Add new ModalDialogName

* Use constructor fields

* Register URL browser dialog components

* Remove unnecessary helper function

* nextYear function doc and move

* split registerListeners method

* showDialog returns promise

* Backup device type comment

* Pass aria label through constructor

* Fix backup button

* Remove comment

* Comment unsupported MI backup options

* Remove one liner helper function

* Restore dialog methods return types

* Remove comment

* JS doc format

* Renamed UrlBrowserDialog to BackupRestoreUrlBrowserDialog

* Moved MediaDeviceType, added PhisicalDeviceType

* Reorder and rename physical device type

* remove extra spaces

Co-authored-by: chgagnon <chgagnon@microsoft.com>
2022-05-11 11:01:06 -07:00

125 lines
4.0 KiB
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export const enum EventName {
Action = 'action',
Error = 'error',
Metrics = 'metrics',
View = 'view'
}
export const enum ModalDialogName {
ErrorMessage = 'ErrorMessage',
WebView = 'WebView',
ConnectionAdvancedProperties = 'ConnectionAdvancedProperties',
Connection = 'Connection',
Backup = 'Backup',
FileBrowser = 'FileBrowser',
UrlBrowser = 'UrlBrowser',
Restore = 'Restore',
Insights = 'Insights',
Profiler = 'Profiler',
ServerGroups = 'ServerGroups',
Accounts = 'Accounts',
FireWallRule = 'FirewallRule',
AutoOAuth = 'AutoOAuth',
AddNewDashboardTab = 'AddNewDashboardTab',
ProfilerFilter = 'ProfilerFilter',
CalloutDialog = 'CalloutDialog',
TableDesignerPublishDialog = 'TableDesignerPublishDialog'
}
export const enum TelemetryView {
Agent = 'Agent',
AgentJobs = 'AgentJobs',
AgentJobHistory = 'AgentJobHistory',
AgentJobSteps = 'AgentJobSteps',
AgentNotebookHistory = 'AgentNotebookHistory',
AgentNotebooks = 'AgentNotebooks',
ConnectionDialog = 'ConnectionDialog',
ExecutionPlan = 'ExecutionPlan',
ExtensionHost = 'ExtensionHost',
ExtensionRecommendationDialog = 'ExtensionRecommendationDialog',
Notebook = 'Notebook',
ResultsPanel = 'ResultsPanel',
Shell = 'Shell',
SqlAssessment = 'SqlAssessment',
TableDesigner = 'TableDesigner'
}
export const enum TelemetryError {
DatabaseConnectionError = 'DatabaseConnectionError',
ObjectExplorerExpandError = 'ObjectExplorerExpandError'
}
export const enum TelemetryAction {
AddServerGroup = 'AddServerGroup',
adsCommandExecuted = 'adsCommandExecuted',
ConnectToServer = 'ConnectToServer',
CustomZoom = 'CustomZoom',
BackupCreated = 'BackupCreated',
DashboardNavigated = 'DashboardNavigated',
DatabaseConnected = 'DatabaseConnected',
DatabaseDisconnected = 'DatabaseDisconnected',
DeleteAgentJob = 'DeleteAgentJob',
DeleteAgentJobStep = 'DeleteAgentJobStep',
DeleteAgentAlert = 'DeleteAgentAlert',
DeleteAgentOperator = 'DeleteAgentOperator',
DeleteAgentProxy = 'DeleteAgentProxy',
DeleteConnection = 'DeleteConnection',
DeleteServerGroup = 'DeleteServerGroup',
CancelQuery = 'CancelQuery',
ChartCreated = 'ChartCreated',
Click = 'Click',
FindNode = 'FindNode',
FirewallRuleRequested = 'FirewallRuleCreated',
GenerateScript = 'GenerateScript',
GeneratePreviewReport = 'GeneratePreviewReport',
GetDataGridItems = 'GetDataGridItems',
GetDataGridColumns = 'GetDataGridColumns',
ModelViewDashboardOpened = 'ModelViewDashboardOpened',
ModalDialogClosed = 'ModalDialogClosed',
ModalDialogOpened = 'ModalDialogOpened',
MoveServerConnection = 'MoveServerConnection',
MoveServerGroup = 'MoveServerGroup',
NewQuery = 'NewQuery',
ObjectExplorerExpand = 'ObjectExplorerExpand',
Open = 'Open',
OpenQuery = 'OpenQuery',
OpenExecutionPlanProperties = 'OpenExecutionPlanProperties',
PublishChanges = 'PublishChanges',
RestoreRequested = 'RestoreRequested',
RunAgentJob = 'RunAgentJob',
RunQuery = 'RunQuery',
RunQueryStatement = 'RunQueryStatement',
RunQueryString = 'RunQueryString',
ShowChart = 'ShowChart',
StopAgentJob = 'StopAgentJob',
ViewTopOperations = 'ViewTopOperations',
WizardPagesNavigation = 'WizardPagesNavigation',
SearchStarted = 'SearchStarted',
SearchCompleted = 'SearchCompleted',
ZoomIn = 'ZoomIn',
ZoomOut = 'ZoomOut',
ZoomToFit = 'ZoomToFIt'
}
export const enum NbTelemetryAction {
RunCell = 'RunCell',
RunAll = 'RunNotebook',
AddCell = 'AddCell',
KernelChanged = 'KernelChanged',
NewNotebookFromConnections = 'NewNotebookWithConnectionProfile',
UndoCell = 'UndoCell',
RedoCell = 'RedoCell',
MIMETypeRendererNotFound = 'MIMETypeRendererNotFound'
}
export const enum TelemetryPropertyName {
ChartMaxRowCountExceeded = 'chartMaxRowCountExceeded',
ConnectionSource = 'connectionSource'
}