feat: author and inspect grpc data connections

This commit is contained in:
Joseph Doherty
2026-11-16 20:58:43 -05:00
parent 8ad03e9c5d
commit 1df29a3124
31 changed files with 1246 additions and 141 deletions
@@ -0,0 +1,33 @@
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);
@@ -48,4 +48,5 @@ public sealed record NodeDiagnosticsSnapshot(
RevisionHash? CurrentRevision,
IReadOnlyList<DriverInstanceDiagnostics> Drivers,
DateTime AsOfUtc,
bool RunningFromCache = false);
bool RunningFromCache = false,
IReadOnlyList<DataConnectionDiagnosticsSnapshot>? DataConnections = null);