2020-06-23 03:11:56 +02:00
|
|
|
package models
|
|
|
|
|
|
|
|
import (
|
2021-05-21 05:29:01 +02:00
|
|
|
"time"
|
|
|
|
|
2020-10-05 19:07:09 +02:00
|
|
|
"github.com/owncast/owncast/utils"
|
2020-06-23 03:11:56 +02:00
|
|
|
)
|
|
|
|
|
2020-11-13 00:14:59 +01:00
|
|
|
// Stats holds the stats for the system.
|
2020-06-23 03:11:56 +02:00
|
|
|
type Stats struct {
|
2021-08-04 02:47:16 +02:00
|
|
|
SessionMaxViewerCount int `json:"sessionMaxViewerCount"`
|
|
|
|
OverallMaxViewerCount int `json:"overallMaxViewerCount"`
|
|
|
|
LastDisconnectTime *utils.NullTime `json:"lastDisconnectTime"`
|
2020-06-23 03:11:56 +02:00
|
|
|
|
2021-05-21 05:29:01 +02:00
|
|
|
StreamConnected bool `json:"-"`
|
2021-08-04 02:47:16 +02:00
|
|
|
LastConnectTime *utils.NullTime `json:"-"`
|
2021-05-21 05:29:01 +02:00
|
|
|
ChatClients map[string]Client `json:"-"`
|
|
|
|
Viewers map[string]time.Time `json:"-"`
|
2020-06-23 03:11:56 +02:00
|
|
|
}
|