added missing event timestamps

This commit is contained in:
Oliver Kieselbach
2026-02-28 21:23:25 +01:00
parent 4bf2b965ae
commit ab08d48d94
3 changed files with 9 additions and 5 deletions
@@ -462,7 +462,8 @@ namespace AutopilotMonitor.Agent.Core.Monitoring.Collectors
{
{ "windowsEventId", eventId },
{ "providerName", providerName ?? "" },
{ "description", "truncated" }
{ "description", "truncated" },
{ "eventTime", timestamp.ToString("o") }
};
if (isBackfill)
@@ -677,11 +678,13 @@ namespace AutopilotMonitor.Agent.Core.Monitoring.Collectors
return;
}
var eventTimestamp = record.TimeCreated ?? DateTime.UtcNow;
_onEventCollected(new EnrollmentEvent
{
SessionId = _sessionId,
TenantId = _tenantId,
Timestamp = record.TimeCreated ?? DateTime.UtcNow,
Timestamp = eventTimestamp,
EventType = eventType,
Severity = severity,
Source = "EspAndHelloTracker",
@@ -692,7 +695,8 @@ namespace AutopilotMonitor.Agent.Core.Monitoring.Collectors
{ "windowsEventId", eventId },
{ "providerName", record.ProviderName ?? "" },
{ "description", description },
{ "eventLogChannel", ShellCoreEventLogChannel }
{ "eventLogChannel", ShellCoreEventLogChannel },
{ "eventTime", eventTimestamp.ToString("o") }
}
});
@@ -1 +1 @@
111
114
File diff suppressed because one or more lines are too long