2020-06-23 03:11:56 +02:00
|
|
|
package models
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
2020-07-19 00:06:54 +02:00
|
|
|
|
2020-10-05 19:07:09 +02:00
|
|
|
"github.com/owncast/owncast/utils"
|
2020-06-23 03:11:56 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
//Stats holds the stats for the system
|
|
|
|
type Stats struct {
|
2020-07-19 00:06:54 +02:00
|
|
|
SessionMaxViewerCount int `json:"sessionMaxViewerCount"`
|
|
|
|
OverallMaxViewerCount int `json:"overallMaxViewerCount"`
|
|
|
|
LastDisconnectTime utils.NullTime `json:"lastDisconnectTime"`
|
2020-06-23 03:11:56 +02:00
|
|
|
|
|
|
|
StreamConnected bool `json:"-"`
|
2020-07-19 00:06:54 +02:00
|
|
|
LastConnectTime utils.NullTime `json:"-"`
|
2020-06-23 03:11:56 +02:00
|
|
|
Clients map[string]time.Time `json:"-"`
|
|
|
|
}
|