perf

package
v0.0.1-dev Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	RTPPacketCounters      *prometheus.CounterVec
	RTPPacketBytesCounters *prometheus.CounterVec
	RTCSessions            *prometheus.GaugeVec
	RTCConnStateCounters   *prometheus.CounterVec
	RTCErrors              *prometheus.CounterVec

	WSConnections     *prometheus.GaugeVec
	WSMessageCounters *prometheus.CounterVec
	// contains filtered or unexported fields
}

func NewMetrics

func NewMetrics(namespace string, registry *prometheus.Registry) *Metrics

func (*Metrics) AddRTPPacketBytes

func (m *Metrics) AddRTPPacketBytes(direction, trackType string, value int)

func (*Metrics) DecRTCSessions

func (m *Metrics) DecRTCSessions(groupID string, callID string)

func (*Metrics) DecWSConnections

func (m *Metrics) DecWSConnections(clientID string)

func (*Metrics) Handler

func (m *Metrics) Handler() http.Handler

func (*Metrics) IncRTCConnState

func (m *Metrics) IncRTCConnState(state string)

func (*Metrics) IncRTCErrors

func (m *Metrics) IncRTCErrors(groupID string, errType string)

func (*Metrics) IncRTCSessions

func (m *Metrics) IncRTCSessions(groupID string, callID string)

func (*Metrics) IncRTPPackets

func (m *Metrics) IncRTPPackets(direction, trackType string)

func (*Metrics) IncWSConnections

func (m *Metrics) IncWSConnections(clientID string)

func (*Metrics) IncWSMessages

func (m *Metrics) IncWSMessages(clientID, msgType, direction string)

Jump to

Keyboard shortcuts

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