mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 09:35:37 -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:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user