stats

package
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InputAudio  = "input.audio"
	InputVideo  = "input.video"
	OutputAudio = "output.audio"
	OutputVideo = "output.video"
)

Variables

This section is empty.

Functions

func LogMediaStats added in v1.3.0

func LogMediaStats(s *ipc.MediaStats, logger logger.Logger)

Types

type LocalMediaStatsGatherer added in v1.3.0

type LocalMediaStatsGatherer struct {
	// contains filtered or unexported fields
}

func NewLocalMediaStatsGatherer added in v1.3.0

func NewLocalMediaStatsGatherer() *LocalMediaStatsGatherer

func (*LocalMediaStatsGatherer) GatherStats added in v1.3.0

func (l *LocalMediaStatsGatherer) GatherStats(ctx context.Context) (*ipc.MediaStats, error)

func (*LocalMediaStatsGatherer) RegisterTrackStats added in v1.3.0

func (l *LocalMediaStatsGatherer) RegisterTrackStats(path string) *MediaTrackStatGatherer

type LocalStatsUpdater added in v1.3.0

type LocalStatsUpdater struct {
	Params *params.Params
}

func (*LocalStatsUpdater) UpdateMediaStats added in v1.3.0

func (a *LocalStatsUpdater) UpdateMediaStats(ctx context.Context, s *ipc.MediaStats) error

type MediaStatsReporter added in v1.1.0

type MediaStatsReporter struct {
	// contains filtered or unexported fields
}

func NewMediaStats added in v1.1.0

func NewMediaStats(statsUpdater types.MediaStatsUpdater) *MediaStatsReporter

func (*MediaStatsReporter) Close added in v1.1.0

func (m *MediaStatsReporter) Close()

func (*MediaStatsReporter) RegisterGatherer added in v1.3.0

func (m *MediaStatsReporter) RegisterGatherer(g types.MediaStatGatherer)

func (*MediaStatsReporter) UpdateStats added in v1.3.0

func (m *MediaStatsReporter) UpdateStats(ctx context.Context)

type MediaTrackStatGatherer added in v1.3.0

type MediaTrackStatGatherer struct {
	// contains filtered or unexported fields
}

func NewMediaTrackStatGatherer added in v1.3.0

func NewMediaTrackStatGatherer(path string) *MediaTrackStatGatherer

func (*MediaTrackStatGatherer) MediaReceived added in v1.3.0

func (g *MediaTrackStatGatherer) MediaReceived(size int64)

func (*MediaTrackStatGatherer) PLI added in v1.4.0

func (g *MediaTrackStatGatherer) PLI()

func (*MediaTrackStatGatherer) PacketLost added in v1.3.0

func (g *MediaTrackStatGatherer) PacketLost(count int64)

func (*MediaTrackStatGatherer) Path added in v1.3.0

func (g *MediaTrackStatGatherer) Path() string

func (*MediaTrackStatGatherer) UpdateStats added in v1.3.0

func (g *MediaTrackStatGatherer) UpdateStats() *ipc.TrackStats

type Monitor

type Monitor struct {
	// contains filtered or unexported fields
}

func NewMonitor

func NewMonitor() *Monitor

func (*Monitor) AcceptIngress

func (m *Monitor) AcceptIngress(info *livekit.IngressInfo) bool

func (*Monitor) CanAccept added in v1.1.0

func (m *Monitor) CanAccept() bool

func (*Monitor) CanAcceptIngress

func (m *Monitor) CanAcceptIngress(info *livekit.IngressInfo) bool

func (*Monitor) GetCPULoad

func (m *Monitor) GetCPULoad() float64

func (*Monitor) IngressEnded

func (m *Monitor) IngressEnded(info *livekit.IngressInfo)

func (*Monitor) IngressStarted

func (m *Monitor) IngressStarted(info *livekit.IngressInfo)

func (*Monitor) Shutdown added in v1.1.0

func (m *Monitor) Shutdown()

Server is shutting down, but may stay up for some time for draining

func (*Monitor) Start

func (m *Monitor) Start(conf *config.Config) error

func (*Monitor) Stop

func (m *Monitor) Stop()

Stop the monitor before server termination

func (*Monitor) UpdateCostConfig added in v1.2.2

func (m *Monitor) UpdateCostConfig(cpuCostConfig *config.CPUCostConfig) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL