SubscriptionMetrics

@Serializable
data class SubscriptionMetrics(val events: Long, val current: Int, val peak: Int, val lifetimeAvg: Duration, val lifetimeMedian: Duration, val subscribersAvg: Double, val subscribersMedian: Double)

Aggregated metrics for subscriptions.

Constructors

Link copied to clipboard
constructor(events: Long, current: Int, peak: Int, lifetimeAvg: Duration, lifetimeMedian: Duration, subscribersAvg: Double, subscribersMedian: Double)

Properties

Link copied to clipboard

Current active subscribers.

Link copied to clipboard

Total subscribe and unsubscribe events.

Link copied to clipboard

Average subscriber lifetime.

Link copied to clipboard

Median subscriber lifetime.

Link copied to clipboard
val peak: Int

Peak concurrent subscribers observed.

Link copied to clipboard

Average subscriber count over the sampling window.

Link copied to clipboard

Median subscriber count over the sampling window.