Files
ScadaBridge/src/ScadaLink.Commons/Messages/DataConnection/DataConnectionHealthReport.cs
T
Joseph Doherty 801c0c1df2 feat(dcl): add active endpoint to health reports and log failover events
Add ActiveEndpoint field to DataConnectionHealthReport showing which
endpoint is active (Primary, Backup, or Primary with no backup configured).
Log failover transitions and connection restoration events to the site
event log via ISiteEventLogger, passed as an optional parameter through
the actor hierarchy for backwards compatibility.
2026-03-22 08:34:05 -04:00

15 lines
416 B
C#

using ScadaLink.Commons.Types.Enums;
namespace ScadaLink.Commons.Messages.DataConnection;
/// <summary>
/// Health metrics for a single data connection, contributed to the site health report.
/// </summary>
public record DataConnectionHealthReport(
string ConnectionName,
ConnectionHealth Status,
int TotalSubscribedTags,
int ResolvedTags,
string ActiveEndpoint,
DateTimeOffset Timestamp);