reducers

package
v0.3.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricViewerCount                health.MetricName = "ViewerCount"
	MetricMediaTimeMillis            health.MetricName = "MediaTimeMillis"
	MetricMultistreamMediaTimeMillis health.MetricName = "MultistreamMediaTimeMillis"
	MetricMultistreamActiveSec       health.MetricName = "MultistreamActiveSec"
	MetricMultistreamBytes           health.MetricName = "MultistreamBytes"
	MetricMultistreamBitrateSec      health.MetricName = "MultistreamBitrateSec"
)
View Source
const (
	ConditionTranscoding       health.ConditionType = "Transcoding"
	ConditionTranscodeRealTime health.ConditionType = "TranscodeRealTime"
	ConditionTranscodeNoErrors health.ConditionType = "TranscodeNoErrors"

	MetricTranscodeRealtimeRatio health.MetricName = "TranscodeRealtimeRatio"
)
View Source
const (
	ConditionMultistreaming health.ConditionType = "Multistreaming"
)

Variables

View Source
var HealthReducer = health.ReducerFunc(reduceHealth)

Functions

func Default added in v0.3.0

func Default(golpExchange string, shardPrefixes []string) health.Reducer

func DefaultStarTimeOffset added in v0.3.0

func DefaultStarTimeOffset() time.Duration

func StatsReducer

func StatsReducer(statsWindows []time.Duration) health.ReducerFunc

Types

type MediaServerMetrics added in v0.3.0

type MediaServerMetrics struct{}

func (MediaServerMetrics) Bindings added in v0.3.0

func (t MediaServerMetrics) Bindings() []event.BindingArgs

func (MediaServerMetrics) Conditions added in v0.3.0

func (t MediaServerMetrics) Conditions() []health.ConditionType

func (MediaServerMetrics) Reduce added in v0.3.0

func (t MediaServerMetrics) Reduce(current *health.Status, _ interface{}, evtIface data.Event) (*health.Status, interface{})

type MultistreamReducer added in v0.2.0

type MultistreamReducer struct{}

func (MultistreamReducer) Bindings added in v0.2.0

func (t MultistreamReducer) Bindings() []event.BindingArgs

func (MultistreamReducer) Conditions added in v0.2.0

func (t MultistreamReducer) Conditions() []health.ConditionType

func (MultistreamReducer) Reduce added in v0.2.0

func (t MultistreamReducer) Reduce(current *health.Status, _ interface{}, evtIface data.Event) (*health.Status, interface{})

type Pipeline added in v0.3.0

type Pipeline []health.Reducer

func (Pipeline) Bindings added in v0.3.0

func (p Pipeline) Bindings() []event.BindingArgs

func (Pipeline) Conditions added in v0.3.0

func (p Pipeline) Conditions() []health.ConditionType

func (Pipeline) Reduce added in v0.3.0

func (p Pipeline) Reduce(current *health.Status, stateIface interface{}, evt data.Event) (*health.Status, interface{})

type TranscodeReducer

type TranscodeReducer struct {
	GolpExchange  string
	ShardPrefixes []string
}

func (TranscodeReducer) Bindings

func (t TranscodeReducer) Bindings() []event.BindingArgs

func (TranscodeReducer) Conditions

func (t TranscodeReducer) Conditions() []health.ConditionType

func (TranscodeReducer) Reduce

func (t TranscodeReducer) Reduce(current *health.Status, _ interface{}, evtIface data.Event) (*health.Status, interface{})

Jump to

Keyboard shortcuts

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