Loading…
} else { + @if (_reading is { Availability: HistorianSinkAvailability.Unavailable }) + { +| @e.TimestampUtc.ToString("HH:mm:ss.fff") | @@ -137,7 +138,9 @@ else @code { private const int Capacity = 200; - private readonly List|||||||||
| @r.NodeId | ++ @r.NodeId + @* A-F4: the per-node diagnostics page was reachable only by URL. Driver nodes + answer it (the snapshot comes from their DriverHostActor). *@ + @if (r.Roles.Contains(RoleParser.Driver)) + { + diagnostics + } + |
@foreach (var role in r.Roles)
{
diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/FleetDiagnostics.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/FleetDiagnostics.razor
index 1b958048..e55791b7 100644
--- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/FleetDiagnostics.razor
+++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/FleetDiagnostics.razor
@@ -7,11 +7,15 @@
a driver-role member from the selector. *@
@attribute [Authorize(Policy = AdminUiPolicies.AuthenticatedRead)]
@rendermode RenderMode.InteractiveServer
+@using Microsoft.EntityFrameworkCore
+@using ZB.MOM.WW.OtOpcUa.AdminUI.Clients
@using ZB.MOM.WW.OtOpcUa.Cluster
@using ZB.MOM.WW.OtOpcUa.Commons.Interfaces
@using ZB.MOM.WW.OtOpcUa.Commons.Types
+@using ZB.MOM.WW.OtOpcUa.Configuration
@inject IClusterRoleInfo Cluster
@inject IFleetDiagnosticsClient Diagnostics
+@inject IDbContextFactory | |||||||
| @d.Name | +
+ @* A-F5: the wire carries the string instance id; show the authored name
+ (joined from the ConfigDb) with the id beneath it. *@
+ @DisplayNameOf(d)
+ @if (!string.Equals(DisplayNameOf(d), d.Name, StringComparison.Ordinal))
+ {
+ @d.Name
+ }
+ |
@(d.DriverInstanceId == Guid.Empty ? "—" : DisplayText.Abbreviate(d.DriverInstanceId.ToString(), 13)) | @d.State | @d.ConnectedDevices | @@ -151,6 +163,7 @@ else private string _selectedNode = ""; private string _typedNode = ""; private NodeDiagnosticsSnapshot? _snapshot; + private IReadOnlyDictionary
| @e.TimestampUtc.ToString("HH:mm:ss.fff") | @@ -82,7 +83,11 @@ else @code { private const int Capacity = 500; - private readonly List