-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
071a4b6
commit a9de4b3
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
function logTelemetryEvent(eventName, eventData) { | ||
console.log(eventName + ":", eventData); | ||
} | ||
|
||
// Exemple de données de télémétrie pour différents événements | ||
const telemetryEvents = [ | ||
{ name: "KernelProcess.AppStateChangeSummary", data: { state: "active" } }, | ||
{ name: "Microsoft.Office.AppCompat.AddInLoad", data: { addInName: "ExampleAddIn" } }, | ||
{ name: "Microsoft.Office.AppCompat.AddInCrash", data: { addInName: "ExampleAddIn", reason: "unexpected error" } }, | ||
{ name:KernelProcess.AppStateChangeSummary }, | ||
{ name: Microsoft.Office.AppCompat.AddInLoad }, | ||
{ name: Microsoft.Office.AppCompat.AddInCrash }, | ||
{ name: Microsoft.Office.AppCompat.MacroFailure }, | ||
{ name: Microsoft.Office.AppCompat.ApplicationStartEvent }, | ||
{ name: Microsoft.Office.AppCompat.ApplicationLifecycleEvent }, | ||
{ name: Microsoft.Office.AppCompat.UngracefulAppExit }, | ||
{ name: Microsoft.Office.ClickToRun.UpdateStatus }, | ||
{ name: Microsoft.Office.CorrelationMetadata.UTCCorrelationMetadata }, | ||
{ name: Microsoft.Office.SessionIdProvider.OfficeProcessSessionStart }, | ||
{ name: Microsoft.Office.TelemetryEngine.FirstIdle }, | ||
{ name: Microsoft.Office.TelemetryEngine.FirstProcessed }, | ||
{ name: Microsoft.Office.TelemetryEngine.FirstRuleRequest }, | ||
{ name: Microsoft.Office.TelemetryEngine.Init }, | ||
{ name: Microsoft.Office.TelemetryEngine.IsPreLaunch }, | ||
{ name: Microsoft.Office.TelemetryEngine.Resume }, | ||
{ name: Microsoft.Office.TelemetryEngine.RuleRequestFailed }, | ||
{ name: Microsoft.Office.TelemetryEngine.RuleRequestFailedDueToClientOffline }, | ||
{ name: Microsoft.Office.TelemetryEngine.SessionHandOff }, | ||
{ name: Microsoft.Office.TelemetryEngine.ShutdownComplete }, | ||
{ name: Microsoft.Office.TelemetryEngine.ShutdownStart }, | ||
{ name: Microsoft.Office.TelemetryEngine.SuspendComplete }, | ||
{ name: Microsoft.Office.TelemetryEngine.SuspendStart }, | ||
{ name: Microsoft.OSG.OSS.CredProvFramework.ReportResultStop }, | ||
{ name: Microsoft.Windows.Kernel.Power.OSStateChange }, | ||
{ name: Microsoft.Windows.LogonController.LogonAndUnlockSubmit }, | ||
{ name: Microsoft.Windows.LogonController.SignInFailure }, | ||
{ name: Microsoft.Windows.Security.Biometrics.Service.BioServiceActivityCapture }, | ||
{ name: Microsoft.Windows.Security.Winlogon.SystemBootStop }, | ||
{ name: Microsoft.Windows.Shell.Desktop.LogonFramework.AllLogonTasks }, | ||
{ name: Microsoft.Windows.Shell.Desktop.LogonFramework.LogonTask }, | ||
{ name: Microsoft.Windows.Shell.Explorer.DesktopReady }, | ||
{ name: Microsoft-Windows-Security-EFS-EDPAudit-ApplicationLearning.EdpAuditLogApplicationLearning }, | ||
{ name: Win32kTraceLogging.AppInteractivitySummary }, | ||
// Ajoutez d'autres événements ici | ||
]; | ||
|
||
// Enregistrer les événements de télémétrie | ||
telemetryEvents.forEach(event => logTelemetryEvent(event.name, event.data)); |