stats

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Inbound  = CallDir(false)
	Outbound = CallDir(true)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CallDir

type CallDir bool

func (CallDir) String

func (d CallDir) String() string

type CallMonitor

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

func (*CallMonitor) CallDur

func (c *CallMonitor) CallDur() func() time.Duration

func (*CallMonitor) CallEnd

func (c *CallMonitor) CallEnd()

func (*CallMonitor) CallStart

func (c *CallMonitor) CallStart()

func (*CallMonitor) CallTerminate

func (c *CallMonitor) CallTerminate(reason string)

func (*CallMonitor) CheckDur

func (c *CallMonitor) CheckDur() prometheus.Observer

func (*CallMonitor) InviteAccept

func (c *CallMonitor) InviteAccept()

func (*CallMonitor) InviteError

func (c *CallMonitor) InviteError(reason string)

func (*CallMonitor) InviteErrorShort

func (c *CallMonitor) InviteErrorShort(reason string)

func (*CallMonitor) InviteReq

func (c *CallMonitor) InviteReq()

func (*CallMonitor) JoinDur

func (c *CallMonitor) JoinDur() func() time.Duration

func (*CallMonitor) RTPPacketRecv

func (c *CallMonitor) RTPPacketRecv(payloadType string)

func (*CallMonitor) RTPPacketSend

func (c *CallMonitor) RTPPacketSend(payloadType string)

func (*CallMonitor) SDPSize

func (c *CallMonitor) SDPSize(sz int, isOffer bool)

func (*CallMonitor) SessionDur

func (c *CallMonitor) SessionDur() func() time.Duration

type HealthStatus

type HealthStatus int
const (
	HealthOK HealthStatus = iota
	HealthNotStarted
	HealthStopped
	HealthUnderLoad
	HealthDisabled
)

func (HealthStatus) String

func (i HealthStatus) String() string

type Monitor

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

func NewMonitor

func NewMonitor(conf *config.Config) (*Monitor, error)

func (*Monitor) Health

func (m *Monitor) Health() HealthStatus

func (*Monitor) IdleCPU

func (m *Monitor) IdleCPU() float64

func (*Monitor) InviteReqRaw

func (m *Monitor) InviteReqRaw(dir CallDir)

func (*Monitor) NewCall

func (m *Monitor) NewCall(dir CallDir, fromHost, toHost string) *CallMonitor

func (*Monitor) Shutdown

func (m *Monitor) Shutdown()

func (*Monitor) Start

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

func (*Monitor) Stop

func (m *Monitor) Stop()

func (*Monitor) TransferFailed

func (m *Monitor) TransferFailed(dir CallDir, reason string, changeActive bool)

func (*Monitor) TransferStarted

func (m *Monitor) TransferStarted(dir CallDir)

func (*Monitor) TransferSucceeded

func (m *Monitor) TransferSucceeded(dir CallDir)

Jump to

Keyboard shortcuts

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