Expose total subscribers and topics in the /v1/stats api

This commit is contained in:
Kevin Lutzer 2023-09-17 11:48:40 -04:00
parent 528a67722b
commit d0898c8650
3 changed files with 28 additions and 10 deletions

View file

@ -244,8 +244,10 @@ type apiHealthResponse struct {
}
type apiStatsResponse struct {
Messages int64 `json:"messages"`
MessagesRate float64 `json:"messages_rate"` // Average number of messages per second
Messages int64 `json:"messages"`
MessagesRate float64 `json:"messages_rate"` // Average number of messages per second
TotalTopics int64 `json:"total_topics"`
TotalSubscriptions int64 `json:"total_subscriptions"`
}
type apiUserAddRequest struct {