801c0c1df2
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.
15 lines
416 B
C#
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);
|