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:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user