mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-22 04:40:30 -04:00
Add additional telemetry for basic admin operations (#24526)
This commit is contained in:
@@ -7,7 +7,7 @@ import * as azdata from 'azdata';
|
||||
import { ObjectManagementDialogBase, ObjectManagementDialogOptions } from './objectManagementDialogBase';
|
||||
import { DatabaseFileData, IObjectManagementService, ObjectManagement } from 'mssql';
|
||||
import { Database, DatabaseViewInfo } from '../interfaces';
|
||||
import { AttachDatabaseDocUrl } from '../constants';
|
||||
import { AttachDatabaseDocUrl, TelemetryActions } from '../constants';
|
||||
import * as loc from '../localizedConstants';
|
||||
import { RemoveText } from '../../ui/localizedConstants';
|
||||
import { DefaultMinTableRowCount, DialogButton, getTableHeight } from '../../ui/dialogBase';
|
||||
@@ -178,6 +178,10 @@ export class AttachDatabaseDialog extends ObjectManagementDialogBase<Database, D
|
||||
return AttachDatabaseDocUrl;
|
||||
}
|
||||
|
||||
protected override get actionName(): string {
|
||||
return TelemetryActions.AttachDatabase;
|
||||
}
|
||||
|
||||
protected override async validateInput(): Promise<string[]> {
|
||||
let errors = [];
|
||||
if (this._databasesToAttach.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user