Documentation ¶
Index ¶
- type Metrics
- func (m *Metrics) AddRTPPacketBytes(direction, trackType string, value int)
- func (m *Metrics) DecRTCSessions(groupID string, callID string)
- func (m *Metrics) DecWSConnections(clientID string)
- func (m *Metrics) Handler() http.Handler
- func (m *Metrics) IncRTCConnState(state string)
- func (m *Metrics) IncRTCErrors(groupID string, errType string)
- func (m *Metrics) IncRTCSessions(groupID string, callID string)
- func (m *Metrics) IncRTPPackets(direction, trackType string)
- func (m *Metrics) IncWSConnections(clientID string)
- func (m *Metrics) IncWSMessages(clientID, msgType, direction string)
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 (*Metrics) DecRTCSessions ¶
func (*Metrics) DecWSConnections ¶
func (*Metrics) IncRTCConnState ¶
func (*Metrics) IncRTCErrors ¶
func (*Metrics) IncRTCSessions ¶
func (*Metrics) IncRTPPackets ¶
func (*Metrics) IncWSConnections ¶
func (*Metrics) IncWSMessages ¶
Click to show internal directories.
Click to hide internal directories.