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:
Aasim Khan
2021-07-26 12:26:37 -07:00
committed by GitHub
parent c60bcc0d0d
commit 70fc6bd43d
9 changed files with 258 additions and 28 deletions

View File

@@ -7,6 +7,7 @@ import { CategoryValue, DropDownComponent } from 'azdata';
import { DAYS, HRS, MINUTE, SEC } from '../constants/strings';
import { AdsMigrationStatus } from '../dialog/migrationStatus/migrationStatusDialogModel';
import { MigrationContext } from '../models/migrationLocalStorage';
import * as crypto from 'crypto';
export function deepClone<T>(obj: T): T {
if (!obj || typeof obj !== 'object') {
@@ -157,6 +158,10 @@ export function findDropDownItemIndex(dropDown: DropDownComponent, value: string
return -1;
}
export function hashString(value: string): string {
return crypto.createHash('sha512').update(value).digest('hex');
}
export function debounce(delay: number): Function {
return decorate((fn, key) => {
const timerKey = `$debounce$${key}`;