stats

package
v1.8.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerMonitor added in v1.8.1

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

func NewHandlerMonitor added in v1.8.1

func NewHandlerMonitor(nodeId string, clusterId string, egressId string) *HandlerMonitor

func (*HandlerMonitor) IncBackupStorageWrites added in v1.8.1

func (m *HandlerMonitor) IncBackupStorageWrites(outputType string)

func (*HandlerMonitor) IncUploadCountFailure added in v1.8.1

func (m *HandlerMonitor) IncUploadCountFailure(uploadType string, elapsed float64)

func (*HandlerMonitor) IncUploadCountSuccess added in v1.8.1

func (m *HandlerMonitor) IncUploadCountSuccess(uploadType string, elapsed float64)

func (*HandlerMonitor) RegisterPlaylistChannelSizeGauge added in v1.8.1

func (m *HandlerMonitor) RegisterPlaylistChannelSizeGauge(nodeId string, clusterId string, egressId string, channelSizeFunction func() float64)

func (*HandlerMonitor) RegisterSegmentsChannelSizeGauge added in v1.8.1

func (m *HandlerMonitor) RegisterSegmentsChannelSizeGauge(nodeId string, clusterId string, egressId string, channelSizeFunction func() float64)

type Monitor

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

func NewMonitor

func NewMonitor(conf *config.ServiceConfig, svc Service) (*Monitor, error)

func (*Monitor) AcceptRequest

func (m *Monitor) AcceptRequest(req *rpc.StartEgressRequest) error

func (*Monitor) CanAcceptRequest

func (m *Monitor) CanAcceptRequest(req *rpc.StartEgressRequest) bool

func (*Monitor) CanAcceptWebRequest added in v1.8.6

func (m *Monitor) CanAcceptWebRequest() bool

func (*Monitor) EgressAborted added in v1.7.5

func (m *Monitor) EgressAborted(req *rpc.StartEgressRequest)

func (*Monitor) EgressEnded

func (m *Monitor) EgressEnded(req *rpc.StartEgressRequest) (float64, float64)

func (*Monitor) EgressStarted

func (m *Monitor) EgressStarted(req *rpc.StartEgressRequest)

func (*Monitor) GetAvailableCPU added in v1.8.3

func (m *Monitor) GetAvailableCPU() float64

func (*Monitor) UpdatePID added in v1.8.1

func (m *Monitor) UpdatePID(egressID string, pid int)

type Service added in v1.8.4

type Service interface {
	IsIdle() bool
	IsDisabled() bool
	IsTerminating() bool
	KillProcess(string, float64)
}

Jump to

Keyboard shortcuts

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