mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 01:25:36 -05:00
Adding Assessment Telemetry in SQL Migration (#15935)
* Adding telemetry for assessment * Removing dms loading fix * Fixing PR * removing collection of account id * moving database warning count to the server assessment event * Removing individual warning and issue events * Adding aggregates for database issues and warnings * removing extra line * Adding other telemetry events in sql migration * Fixed changes made in the PR * Fixing attribute names * Consolidating issues and errors in 1 event * Converting dependencies to dev depenedencies * Adding a catch for the telemetry function * moving the non type uuid to non dev * Made hashmap code cleaner * Fixing cutover start time * Fixing object creation * Reverting back to old method. * Modifying the date time to js objects * Converting issues and warnings to json object
This commit is contained in:
@@ -67,7 +67,8 @@ export class MigrationLocalStorage {
|
||||
azureAccount: azdata.Account,
|
||||
subscription: azureResource.AzureResourceSubscription,
|
||||
controller: SqlMigrationService,
|
||||
asyncURL: string): void {
|
||||
asyncURL: string,
|
||||
sessionId: string): void {
|
||||
try {
|
||||
let migrationMementos: MigrationContext[] = this.context.globalState.get(this.mementoToken) || [];
|
||||
migrationMementos = migrationMementos.filter(m => m.migrationContext.id !== migrationContext.id);
|
||||
@@ -78,7 +79,8 @@ export class MigrationLocalStorage {
|
||||
subscription: subscription,
|
||||
azureAccount: azureAccount,
|
||||
controller: controller,
|
||||
asyncUrl: asyncURL
|
||||
asyncUrl: asyncURL,
|
||||
sessionId: sessionId
|
||||
});
|
||||
this.context.globalState.update(this.mementoToken, migrationMementos);
|
||||
} catch (e) {
|
||||
@@ -99,5 +101,6 @@ export interface MigrationContext {
|
||||
subscription: azureResource.AzureResourceSubscription,
|
||||
controller: SqlMigrationService,
|
||||
asyncUrl: string,
|
||||
asyncOperationResult?: AzureAsyncOperationResource
|
||||
asyncOperationResult?: AzureAsyncOperationResource,
|
||||
sessionId?: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user