using ZB.MOM.WW.ScadaBridge.Commons.Types.Alarms;

namespace ZB.MOM.WW.ScadaBridge.Commons.Messages.DataConnection;

/// <summary>DCL → instance: a native alarm transition routed by source reference.</summary>
public record NativeAlarmTransitionUpdate(string ConnectionName, NativeAlarmTransition Transition);

/// <summary>
/// DCL → instance: the alarm feed for a source became unavailable (connection
/// lost). Consumers mark their mirrored alarms uncertain rather than clearing
/// them; the reconnect snapshot reconciles state.
/// </summary>
public record NativeAlarmSourceUnavailable(string ConnectionName, string SourceReference, DateTimeOffset Timestamp);
