refactor: rename ScadaLink → ZB.MOM.WW.ScadaBridge (code + projects + namespaces)
Solution + 23 src projects + 26 test projects renamed; folders, csproj, namespaces, and ScadaLinkDbContext/ScadaBridgeDbContext class updated. ActorSystem "scadalink" → "scadabridge", Akka seed-node URLs migrated. SQL roles/logins, LDAP domains, CLI command name, and CLI config dir (~/.scadalink → ~/.scadabridge) also renamed. Build green; 5 Host.Tests fail awaiting SQL login rename in next commit. Pre-existing StaleTagMonitor timing flakes unchanged. Rename script committed at tools/rename-to-scadabridge.sh.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using ZB.MOM.WW.ScadaBridge.Commons.Types.Enums;
|
||||
|
||||
namespace ZB.MOM.WW.ScadaBridge.Commons.Messages.Streaming;
|
||||
|
||||
public record AlarmStateChanged(
|
||||
string InstanceUniqueName,
|
||||
string AlarmName,
|
||||
AlarmState State,
|
||||
int Priority,
|
||||
DateTimeOffset Timestamp) : ISiteStreamEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// Severity level when <see cref="State"/> is <see cref="AlarmState.Active"/>.
|
||||
/// Always <see cref="AlarmLevel.None"/> for binary trigger types
|
||||
/// (ValueMatch, RangeViolation, RateOfChange); set by the HiLo trigger
|
||||
/// type to one of Low/LowLow/High/HighHigh based on the crossed setpoint.
|
||||
/// Added as an init-property so existing positional constructors still
|
||||
/// work — message contract evolves additively.
|
||||
/// </summary>
|
||||
public AlarmLevel Level { get; init; } = AlarmLevel.None;
|
||||
|
||||
/// <summary>
|
||||
/// Optional per-band operator message (e.g., "Coolant critically low —
|
||||
/// shut down"). Set by HiLo triggers when the per-setpoint message is
|
||||
/// configured; otherwise empty. Notification routing and UI tooltips may
|
||||
/// surface this to operators.
|
||||
/// </summary>
|
||||
public string Message { get; init; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace ZB.MOM.WW.ScadaBridge.Commons.Messages.Streaming;
|
||||
|
||||
public record AttributeValueChanged(
|
||||
string InstanceUniqueName,
|
||||
string AttributePath,
|
||||
string AttributeName,
|
||||
object? Value,
|
||||
string Quality,
|
||||
DateTimeOffset Timestamp) : ISiteStreamEvent;
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace ZB.MOM.WW.ScadaBridge.Commons.Messages.Streaming;
|
||||
|
||||
/// <summary>
|
||||
/// Marker interface for events published to the site-wide stream
|
||||
/// (attribute value changes and alarm state changes).
|
||||
/// </summary>
|
||||
public interface ISiteStreamEvent
|
||||
{
|
||||
/// <summary>The unique name of the instance that produced this event.</summary>
|
||||
string InstanceUniqueName { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user