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>
23 lines
761 B
C#
23 lines
761 B
C#
namespace ZB.MOM.WW.LmxProxy.Host.Domain
|
|
{
|
|
/// <summary>Subscription statistics for monitoring.</summary>
|
|
public class SubscriptionStats
|
|
{
|
|
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; }
|
|
}
|
|
}
|