fix(hosts): driver health is per (driver, node) — ReportingNodeId on DriverHealthChanged + telemetry proto (#847)
This commit is contained in:
@@ -65,6 +65,13 @@ namespace ZB.MOM.WW.OtOpcUa.Commons.Messages.Drivers;
|
||||
/// capability. Additive, never a state change. Same by-reference value-equality caveat as
|
||||
/// <paramref name="HostStatuses"/>.
|
||||
/// </param>
|
||||
/// <param name="ReportingNodeId">
|
||||
/// The <c>ClusterNode.NodeId</c> of the node whose driver actor produced this snapshot (lmxopcua#847), or
|
||||
/// null from a node that predates the field / a harness with no role info. Both nodes of a redundant pair
|
||||
/// run the same driver instance, so <c>DriverInstanceId</c> alone is NOT a unique key: keyed by it, a driver
|
||||
/// Faulted on central-1 and Healthy on central-2 flipped between the two on every publish. Consumers that keep
|
||||
/// a last-value cache key by (DriverInstanceId, ReportingNodeId). Additive — an old central ignores it.
|
||||
/// </param>
|
||||
public sealed record DriverHealthChanged(
|
||||
string ClusterId,
|
||||
string DriverInstanceId,
|
||||
@@ -77,7 +84,8 @@ public sealed record DriverHealthChanged(
|
||||
string? RediscoveryReason = null,
|
||||
IReadOnlyList<HostConnectivityStatus>? HostStatuses = null,
|
||||
SkippedTagReport? SkippedTags = null,
|
||||
IReadOnlyDictionary<string, string>? Diagnostics = null)
|
||||
IReadOnlyDictionary<string, string>? Diagnostics = null,
|
||||
string? ReportingNodeId = null)
|
||||
{
|
||||
/// <summary>
|
||||
/// DPS topic name. Both the runtime <c>AkkaDriverHealthPublisher</c> and the AdminUI
|
||||
|
||||
@@ -88,6 +88,10 @@ message DriverHealth {
|
||||
// flag carries that bit - the same shape as has_host_statuses.
|
||||
bool has_diagnostics = 13;
|
||||
map<string, string> diagnostics = 14;
|
||||
// The ClusterNode.NodeId of the reporting node (lmxopcua#847). Both nodes of a redundant pair run the same
|
||||
// driver instance, so central keys its last-value cache by (driver_instance_id, reporting_node_id). Additive:
|
||||
// absent from an old node (central then falls back to the driver id alone).
|
||||
optional string reporting_node_id = 15;
|
||||
}
|
||||
|
||||
// Mirrors ZB.MOM.WW.OtOpcUa.Core.Abstractions.SkippedTagReport.
|
||||
|
||||
Reference in New Issue
Block a user