Expose total subscribers and topics in the /v1/stats api
This commit is contained in:
parent
528a67722b
commit
d0898c8650
3 changed files with 28 additions and 10 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue