pub struct SloEntry {
pub broadcast: String,
pub transport: String,
pub p50_ms: u64,
pub p95_ms: u64,
pub p99_ms: u64,
pub max_ms: u64,
pub sample_count: usize,
pub total_observed: u64,
}Expand description
Re-export of lvqr_admin::LatencyTracker so downstream callers
(lvqr-test-utils, integration tests) do not need to pull
lvqr-admin in as a direct dep. Tier 4 item 4.7 session A.
Per-broadcast + per-transport latency snapshot returned by
LatencyTracker::snapshot and serialized on the
GET /api/v1/slo route.
Fields§
§broadcast: StringBroadcast name (e.g. "live/demo").
transport: StringEgress surface: "hls", "ws", "dash", "moq", etc.
p50_ms: u6450th percentile latency in milliseconds across the retained sample window.
p95_ms: u6495th percentile latency.
p99_ms: u6499th percentile latency.
max_ms: u64Peak observed latency in the retained sample window.
sample_count: usizeCount of samples retained in the ring buffer (<= MAX_SAMPLES_PER_KEY).
total_observed: u64Total samples ever observed for this key since tracker construction (not bounded by the ring buffer).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SloEntry
impl<'de> Deserialize<'de> for SloEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SloEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SloEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SloEntry
impl Serialize for SloEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for SloEntry
impl StructuralPartialEq for SloEntry
Auto Trait Implementations§
impl Freeze for SloEntry
impl RefUnwindSafe for SloEntry
impl Send for SloEntry
impl Sync for SloEntry
impl Unpin for SloEntry
impl UnsafeUnpin for SloEntry
impl UnwindSafe for SloEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request