While adding events to Historian I set a value for ReceivedTime but this is getting replaced by the time aveva Historian receives the event. Is this the expected behavior, or can it be changed?

I am using the below code to set the custom received time 

// Create the event
HistorianEvent historianEvent = new HistorianEvent
{
ID = Guid.NewGuid(),
EventTime = DateTime.Now,
ReceivedTime = DateTime.Now, // Custom Time 
Type = "TestEventType",
};
// Add custom properties
if (!historianEvent.AddProperty("RandomName", "This is a custom event message", out error))
{
Console.WriteLine("Failed to add 'Message' property: " + error?.ErrorDescription);
}
if (!historianEvent.AddProperty("Severity", "high", out error))
{
Console.WriteLine("Failed to add 'Severity' property: " + error?.ErrorDescription);
}
if (!historianEvent.AddProperty("IsAlarm", false, out error))
{
General
Console.WriteLine("Failed to add 'IsAlarm' property: " + error?.ErrorDescription);
}
// Add the event to the Historian
if (!historianProcessAndEvent.AddStreamedValue(historianEvent, out error))
{
Console.WriteLine("Failed to add event: " + error?.ErrorDescription);
}
else
{
Console.WriteLine("Event added successfully.");
}

Parents Reply Children