worker(alarms): SyntheticAlarmGuid internal + alarmmgr-parity assertion (review fixes)
This commit is contained in:
@@ -62,6 +62,8 @@ public sealed class AlarmDispatcherTests
|
|||||||
Assert.Equal("TestArea", body.Category);
|
Assert.Equal("TestArea", body.Category);
|
||||||
Assert.NotNull(body.TransitionTimestamp);
|
Assert.NotNull(body.TransitionTimestamp);
|
||||||
Assert.Equal(ts, body.TransitionTimestamp.ToDateTime());
|
Assert.Equal(ts, body.TransitionTimestamp.ToDateTime());
|
||||||
|
Assert.False(body.Degraded);
|
||||||
|
Assert.Equal(AlarmProviderMode.Alarmmgr, body.SourceProvider);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ namespace ZB.MOM.WW.MxGateway.Worker.MxAccess;
|
|||||||
/// Single alarm record as emitted by the wnwrapConsumer XML stream.
|
/// Single alarm record as emitted by the wnwrapConsumer XML stream.
|
||||||
/// Field names match the captured XML schema (see
|
/// Field names match the captured XML schema (see
|
||||||
/// <c>docs/AlarmClientDiscovery.md</c> "Option A — captured" section).
|
/// <c>docs/AlarmClientDiscovery.md</c> "Option A — captured" section).
|
||||||
|
/// Records are also produced by the subtag synthesis path when
|
||||||
|
/// <see cref="Degraded"/> is set.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed class MxAlarmSnapshotRecord
|
public sealed class MxAlarmSnapshotRecord
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace ZB.MOM.WW.MxGateway.Worker.MxAccess;
|
|||||||
/// repeated transitions for the same alarm reference correlate downstream
|
/// repeated transitions for the same alarm reference correlate downstream
|
||||||
/// (acknowledge, snapshot, OPC UA mapping) without an alarmmgr-supplied GUID.
|
/// (acknowledge, snapshot, OPC UA mapping) without an alarmmgr-supplied GUID.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static class SyntheticAlarmGuid
|
internal static class SyntheticAlarmGuid
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Produces a stable <see cref="Guid"/> for the given alarm reference.
|
/// Produces a stable <see cref="Guid"/> for the given alarm reference.
|
||||||
|
|||||||
Reference in New Issue
Block a user