1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-05-28 09:25:37 +02:00

WIP: persist message stats

This commit is contained in:
binwiederhier 2023-04-20 22:04:11 -04:00
parent 4783cb1211
commit 6be95f8285
4 changed files with 130 additions and 31 deletions
server

View file

@ -239,6 +239,11 @@ type apiHealthResponse struct {
Healthy bool `json:"healthy"`
}
type apiStatsResponse struct {
Messages int64 `json:"messages"`
MessagesRate float64 `json:"messages_rate"` // Average number of messages per second
}
type apiAccountCreateRequest struct {
Username string `json:"username"`
Password string `json:"password"`