feat(lmxproxy): add delivered/dropped message counts to subscription stats

Subscription metrics (totalDelivered, totalDropped) now visible in
/api/status JSON and HTML dashboard. Card turns yellow if drops > 0.
Aggregated from per-client counters in SubscriptionManager.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Joseph Doherty
2026-03-23 00:07:58 -04:00
parent 59d143e4c8
commit 7f74b660b3
4 changed files with 29 additions and 4 deletions

View File

@@ -3,15 +3,20 @@ namespace ZB.MOM.WW.LmxProxy.Host.Domain
/// <summary>Subscription statistics for monitoring.</summary>
public class SubscriptionStats
{
public SubscriptionStats(int totalClients, int totalTags, int activeSubscriptions)
public SubscriptionStats(int totalClients, int totalTags, int activeSubscriptions,
long totalDelivered = 0, long totalDropped = 0)
{
TotalClients = totalClients;
TotalTags = totalTags;
ActiveSubscriptions = activeSubscriptions;
TotalDelivered = totalDelivered;
TotalDropped = totalDropped;
}
public int TotalClients { get; }
public int TotalTags { get; }
public int ActiveSubscriptions { get; }
public long TotalDelivered { get; }
public long TotalDropped { get; }
}
}