monitor

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyframePkgRecv = "key_frame_recv"
	KeyframePkgSend = "key_frame_send"
	KeyframeRecvFIR = "recv_rtcp_fir"
	KeyframeRecvPLI = "recv_rtcp_pli"
	KeyframeSendFIR = "send_rtcp_fir"
	KeyframeSendPLI = "send_rtcp_pli"
)

key frame count

View Source
const (
	Router         = "router"
	Producer       = "producer"
	Consumer       = "consumer"
	SimpleConsumer = "simple_consumer"
	RtpStreamRecv  = "rtp_stream_recv"
)

mediasoup count

Variables

This section is empty.

Functions

func IceCount

func IceCount(direction DirectionType, packet PacketType)

func InitPrometheus

func InitPrometheus(options ...func(*monitorOpt))

func KeyframeCount

func KeyframeCount(ssrc uint32, event string)

func MediasoupCount

func MediasoupCount(name string, event EventType)

func RtcpRecvCount

func RtcpRecvCount(action TraceType)

func RtcpSendCount

func RtcpSendCount(action TraceType)

func RtpRecvCount

func RtpRecvCount(action TraceType)

func RtpSendCount

func RtpSendCount(action TraceType)

Types

type DirectionType

type DirectionType string
const (
	DirectionTypeRecv DirectionType = "recv"
	DirectionTypeSend DirectionType = "send"
)

type EventType

type EventType string
const (
	EventSendRtp EventType = "send_rtp"
)

type Option

type Option func(*monitorOpt)

func WithPath

func WithPath(path string) Option

func WithPort

func WithPort(port int) Option

type PacketType

type PacketType string
const (
	PacketAll  PacketType = "all"
	PacketStun PacketType = "stun"
	PacketDtls PacketType = "dtls"
)

type TraceType

type TraceType string
const (
	TraceReceive                TraceType = "recv"
	TraceSend                   TraceType = "send"
	TraceDecryptFailed          TraceType = "decrypt_failed"
	TraceEncryptFailed          TraceType = "encrypt_failed"
	TraceUnmarshalFailed        TraceType = "unmarshal_failed"
	TraceMarshalFailed          TraceType = "marshal_failed"
	TraceSsrcNotFound           TraceType = "ssrc_not_found"
	TraceRtpStreamRecvFailed    TraceType = "rtp_stream_recv_failed"
	TraceRtpRtxStreamRecvFailed TraceType = "rtp_rtx_stream_recv_failed"
	TraceRtpStreamNotFound      TraceType = "rtp_stream_not_found"
	TraceUnknownRtcpType        TraceType = "unknown_rtcp_type"
	TraceAudio                  TraceType = "audio"
	TraceVideo                  TraceType = "video"
)

Jump to

Keyboard shortcuts

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