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:
+3
-1
@@ -125,6 +125,8 @@ internal sealed class LocalDataFixture : IDisposable
|
||||
internal readonly DataView Raw = new(new("cluster", "https://zb.com/otopcua/raw", "string", "Plant/Driver/Device/Speed"), DataRealm.Raw, null, 0, "Plant/Driver/Device/Speed");
|
||||
internal readonly DataView Uns = new(new("cluster", "https://zb.com/otopcua/uns", "string", "Area/Line/Equipment/Speed"), DataRealm.Uns, null, 0, "Area/Line/Equipment/Speed");
|
||||
internal readonly LocalDataServices Services;
|
||||
/// <summary>H4: the origin's history diagnostics (counts by status class, live sessions and continuations).</summary>
|
||||
internal readonly DataConnectionHistoryDiagnostics HistoryDiagnostics = new();
|
||||
internal readonly LocalExportCatalog Catalog;
|
||||
internal readonly DataAuthenticatedContext Context;
|
||||
|
||||
@@ -196,7 +198,7 @@ internal sealed class LocalDataFixture : IDisposable
|
||||
var capabilities = new DataCapabilitiesProvider("cluster", () => Serving, () => Catalog.IsActive, limits);
|
||||
Services = new LocalDataServices(() => Catalog, Hub, new DataOperationPolicy(Authority,
|
||||
new TriePermissionEvaluator(Authority.Tries, Clock), Clock), capabilities, Clock, writes: writes, subscriptions: subscriptions,
|
||||
targetSubscriptions: targetSubscriptions, history: history);
|
||||
targetSubscriptions: targetSubscriptions, history: history) { HistoryDiagnostics = HistoryDiagnostics };
|
||||
}
|
||||
|
||||
internal IDataConnection Connection() => Services.Create(Context, new(DataTargetMode.Node, "cluster", Serving.NodeId));
|
||||
|
||||
Reference in New Issue
Block a user