Documentation ¶
Index ¶
- Constants
- Variables
- func Default(golpExchange string, shardPrefixes []string) health.Reducer
- func DefaultStarTimeOffset() time.Duration
- func StatsReducer(statsWindows []time.Duration) health.ReducerFunc
- type ActiveConditionExtraData
- type MediaServerMetrics
- type MultistreamReducer
- type Pipeline
- type StreamStateReducer
- type TranscodeReducer
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 DefaultStarTimeOffset ¶ added in v0.3.0
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
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 ¶
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{})
Click to show internal directories.
Click to hide internal directories.