Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrForbidden = errors.New("forbidden")
)
Functions ¶
This section is empty.
Types ¶
type Etl ¶
type Etl struct {
// contains filtered or unexported fields
}
Etl loads CDN usage data from files from GS bucket, aggregates them by hour and sends to Livepeer API to be put into database
type SendData ¶
type SendData struct { Date int64 `json:"date"` // hour in Unix epoch Region string `json:"region"` FileName string `json:"file_name"` Data []*VideoStatsExt `json:"data"` }
type VideoStats ¶
type VideoStatsExt ¶
type VideoStatsExt struct { StreamID string `json:"stream_id"` PlaybackID string `json:"playback_id"` UniqueUsers int `json:"unique_client_ips"` TotalFilesize int64 `json:"total_filesize"` TotalCsBytes int64 `json:"total_cs_bytes"` TotalScBytes int64 `json:"total_sc_bytes"` Count int `json:"count"` }
Click to show internal directories.
Click to hide internal directories.