feat(grpc-data): H4 remote-history diagnostics and metrics
Consumer and origin history evidence for data connections (plan §6):
- DataConnectionHistoryDiagnostics: otopcua.dataconn.history.reads{variant,status_class,side} and
otopcua.dataconn.history.continuations.active{side} on the exported OtOpcUa meter (the H2 origin
counter sat on a private meter the host never exported); the plan's unknown-bits counter is the
existing X0 otopcua.dataconnection.unknown_operations_dropped, reused
- per-connection projected answers by status class and open consumer continuations (settled on
resume claim or release); origin sessions, open continuations and answers by status class
- negotiated features and advertised history variants/aggregates per connection
- AdminUI data-connections page renders them plus the dropped unknown-operation bits (#919)
- H4 unit-phase manifest key
This commit is contained in:
@@ -38,4 +38,24 @@ public sealed record DataConnectionDiagnosticsSnapshot(
|
||||
// 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);
|
||||
int? MappingsWithDroppedOperations = null,
|
||||
// H4 consumer-side history evidence: the features the last capability handshake negotiated (None = v1 behaviour), the
|
||||
// history variants and aggregate count the origin advertised to this caller, projected HistoryRead results by status
|
||||
// class (per node, as answered to local OPC UA clients) and the remote continuations held in local sessions.
|
||||
DataFeatures? NegotiatedFeatures = null,
|
||||
IReadOnlyList<string>? HistoryVariants = null,
|
||||
int? HistoryAggregateCount = null,
|
||||
long? HistoryReadsGood = null,
|
||||
long? HistoryReadsUncertain = null,
|
||||
long? HistoryReadsBad = null,
|
||||
int? OpenRemoteContinuations = null);
|
||||
|
||||
/// <summary>H4 origin-side remote-history evidence for one node (what it serves to peers over data connections).</summary>
|
||||
/// <param name="Available">The node has a historian backend and can serve remote history.</param>
|
||||
/// <param name="Sessions">Live peer history sessions.</param>
|
||||
/// <param name="OpenContinuations">Origin continuations (page cursors and chunk remainders) held for peers.</param>
|
||||
/// <param name="ReadsGood">Remote history items answered Good since process start.</param>
|
||||
/// <param name="ReadsUncertain">Remote history items answered Uncertain since process start.</param>
|
||||
/// <param name="ReadsBad">Remote history items answered Bad (including refusals) since process start.</param>
|
||||
public sealed record OriginHistoryDiagnostics(bool Available, int Sessions, int OpenContinuations, long ReadsGood,
|
||||
long ReadsUncertain, long ReadsBad);
|
||||
|
||||
@@ -47,6 +47,10 @@ public sealed record DriverInstanceDiagnostics(
|
||||
/// X0 tolerant reader: origin exports on this node whose operation bits this build does not implement, with the
|
||||
/// bits dropped (no grant). Empty when none; null from a sender built before X0 or when no catalog is staged.
|
||||
/// </param>
|
||||
/// <param name="OriginHistory">
|
||||
/// H4: remote history this node serves to data-connection peers. Null from a sender built before H4 or when the node
|
||||
/// runs no data-connection services.
|
||||
/// </param>
|
||||
public sealed record NodeDiagnosticsSnapshot(
|
||||
NodeId NodeId,
|
||||
RevisionHash? CurrentRevision,
|
||||
@@ -54,4 +58,5 @@ public sealed record NodeDiagnosticsSnapshot(
|
||||
DateTime AsOfUtc,
|
||||
bool RunningFromCache = false,
|
||||
IReadOnlyList<DataConnectionDiagnosticsSnapshot>? DataConnections = null,
|
||||
IReadOnlyDictionary<string, ZB.MOM.WW.OtOpcUa.Core.Abstractions.DataConnections.DataOperations>? DroppedExportOperations = null);
|
||||
IReadOnlyDictionary<string, ZB.MOM.WW.OtOpcUa.Core.Abstractions.DataConnections.DataOperations>? DroppedExportOperations = null,
|
||||
OriginHistoryDiagnostics? OriginHistory = null);
|
||||
|
||||
Reference in New Issue
Block a user