2020-06-23 04:11:56 +03:00
|
|
|
package models
|
|
|
|
|
|
|
|
import (
|
2020-10-05 20:07:09 +03:00
|
|
|
"github.com/owncast/owncast/utils"
|
2020-06-23 04:11:56 +03:00
|
|
|
)
|
|
|
|
|
2020-11-13 02:14:59 +03:00
|
|
|
// Stats holds the stats for the system.
|
2020-06-23 04:11:56 +03:00
|
|
|
type Stats struct {
|
2023-05-30 20:31:43 +03:00
|
|
|
LastDisconnectTime *utils.NullTime `json:"lastDisconnectTime"`
|
2020-06-23 04:11:56 +03:00
|
|
|
|
2023-05-30 20:31:43 +03:00
|
|
|
LastConnectTime *utils.NullTime `json:"-"`
|
|
|
|
ChatClients map[string]Client `json:"-"`
|
|
|
|
Viewers map[string]*Viewer `json:"-"`
|
|
|
|
SessionMaxViewerCount int `json:"sessionMaxViewerCount"`
|
|
|
|
OverallMaxViewerCount int `json:"overallMaxViewerCount"`
|
|
|
|
|
|
|
|
StreamConnected bool `json:"-"`
|
2020-06-23 04:11:56 +03:00
|
|
|
}
|