reducers

package
v0.4.5-beta.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

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

	MetricTranscodeRealtimeRatio data.MetricName = "TranscodeRealtimeRatio"
)
View Source
const (
	ConditionActive data.ConditionType = "Active"
)
View Source
const (
	ConditionMultistreaming data.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 ActiveConditionExtraData added in v0.4.0

type ActiveConditionExtraData struct {
	NodeID string `json:"nodeId"`
	Region string `json:"region"`
}

func GetLastActiveData added in v0.4.0

func GetLastActiveData(status *data.HealthStatus) ActiveConditionExtraData

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() []data.ConditionType

func (MediaServerMetrics) Reduce added in v0.3.0

func (t MediaServerMetrics) Reduce(current *data.HealthStatus, _ interface{}, evtIface data.Event) (*data.HealthStatus, 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() []data.ConditionType

func (MultistreamReducer) Reduce added in v0.2.0

func (t MultistreamReducer) Reduce(current *data.HealthStatus, _ interface{}, evtIface data.Event) (*data.HealthStatus, 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() []data.ConditionType

func (Pipeline) Reduce added in v0.3.0

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

type StreamStateReducer added in v0.4.0

type StreamStateReducer struct{}

func (StreamStateReducer) Bindings added in v0.4.0

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

func (StreamStateReducer) Conditions added in v0.4.0

func (t StreamStateReducer) Conditions() []data.ConditionType

func (StreamStateReducer) Reduce added in v0.4.0

func (t StreamStateReducer) Reduce(current *data.HealthStatus, _ interface{}, evtIface data.Event) (*data.HealthStatus, 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() []data.ConditionType

func (TranscodeReducer) Reduce

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

Jump to

Keyboard shortcuts

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