4d29d539d8
- ValidateDeployed ignores every bit outside Understood (understood subset still validated); P02's two 1<<30 rows become 'tolerated, grants nothing'. - UnknownOperationDrops: Warning + counter tagged kind=connection|export|mapping, counted once per row per accepted artifact change; collected under each lock, logged after release. Mappings masked at Stage. - Surfaced via DataConnectionDiagnosticsSnapshot (DroppedUnknownOperations, MappingsWithDroppedOperations) and NodeDiagnosticsSnapshot.DroppedExportOperations. - End-to-end test: 1<<30 through parse -> catalog compile -> mapping stage -> runtime apply. - DataConnectionProtoContract.Validate() now runs at AddOtOpcUaDataConnections.
42 lines
1.6 KiB
C#
42 lines
1.6 KiB
C#
using ZB.MOM.WW.OtOpcUa.Core.Abstractions.DataConnections;
|
|
|
|
namespace ZB.MOM.WW.OtOpcUa.Commons.Interfaces;
|
|
|
|
/// <summary>Bounded, secret-free evidence from one node's applied data connection.</summary>
|
|
/// <remarks>Nullable measures mean that evidence is unavailable, rather than zero activity.</remarks>
|
|
public sealed record DataConnectionDiagnosticsSnapshot(
|
|
string ConnectionId,
|
|
long Revision,
|
|
string State,
|
|
string? SelectedEndpoint,
|
|
ServingIdentity? Serving,
|
|
int ActiveStreams,
|
|
int ActiveCalls,
|
|
long ScopeVersion,
|
|
string ArtifactRevision,
|
|
DateTime AsOfUtc,
|
|
DateTime? LastSampleAtUtc = null,
|
|
DateTime? MetadataLeaseExpiresAtUtc = null,
|
|
int? SourceCount = null,
|
|
int? RegistrationCount = null,
|
|
long? ResetCount = null,
|
|
long? OverflowCount = null,
|
|
long? WriteSucceededCount = null,
|
|
long? WriteRejectedCount = null,
|
|
long? WriteUnknownCount = null,
|
|
int? ProtocolMajor = null,
|
|
int? ProtocolMinor = null,
|
|
DateTime? LastVerifiedAtUtc = null,
|
|
long? WriteFailedCount = null,
|
|
long? WriteUnconfirmedCount = null,
|
|
TimeSpan? SampleAgeUpperBound = null,
|
|
long? CoalescedCount = null,
|
|
long? CompactFrameCount = null,
|
|
long? FallbackFrameCount = null,
|
|
long? SerializedValueFrameBytes = null,
|
|
string? AccountingInstanceId = null,
|
|
// X0 tolerant reader: operation bits this connection row was authored with that this node does not implement and
|
|
// dropped (None = nothing dropped; null = from an older sender), and how many of its mappings had bits dropped.
|
|
DataOperations? DroppedUnknownOperations = null,
|
|
int? MappingsWithDroppedOperations = null);
|