src/vs/workbench/browser/parts/notifications/notificationsTelemetry.ts/notificationToMetrics
export function notificationToMetrics(message: NotificationMessage, source: string | undefined, silent: boolean): NotificationMetrics {
	return {
		id: hash(message.toString()).toString(),
		silent,
		source: source || 'core'
	};
}