TsConnectionHealthStats interface

Transport-level stats for a connection-less TS input (udpTs / tcpTs). No SRT-style loss/RTT; just a packet-gap signal alongside the media health.

Signature:

export interface TsConnectionHealthStats

Properties

Property Type Description

droppedSenders

DroppedSender[]

udpTs: senders being refused, each with how many of its datagrams were dropped (cumulative since it was first seen) and how long ago it was first and last heard from: a second encoder pushing to the port while sender holds the input, or a kicked sender that has not stopped. Listed on every health sample for as long as it keeps sending, and for 30 s after it stops. Empty when nobody is being refused.

errors?

TsErrorCounts

(Optional) ETR 101 290 occurrences over this sample from the input’s TS decoders (udpTs, tcpTs, rist), by kind, with the TS packets seen. Counted whether or not etr290 notifications are on. ccErrorsDuplicate + ccErrorsOutOfOrder per second is what the transport_errors health reason judges.

msSinceLastPacket

number

Milliseconds since the last packet/read arrived — the transport-level gap. Distinct from a stream’s lastMediaAgeMs (time since the last decoded frame): this fires even when decoding has stopped emitting frames.

receivedPackets

number

Packets received over the sample window (UDP datagrams; TCP read chunks)

rist?

RistConnectionStats

(Optional) Set only for a RIST input: librist’s flow statistics. The packet counts above only see what came OUT of recovery; this is how hard recovery is working, and, with a redundant sender, each path.

seamless?

SeamlessProtectionStats

(Optional) Set only for an ST 2022-7 protected input. The two paths are merged as packets are received, so there is no node downstream whose throughput would reveal it — this is the only view of whether protection is actually protecting anything.

sender?

UdpSender

(Optional) udpTs: the sender the input is taking its stream from, once one has been admitted. Under the default senderPolicy ("lockFirst") this is the holder of the input until it goes idle or is kicked.