pub struct QoSObservation {
pub latency_ms: f64,
pub throughput_samples_per_sec: f64,
pub memory_usage_mb: f64,
pub cpu_utilization_percent: Option<f64>,
pub prediction_accuracy: Option<f64>,
pub stream_synchronization_delay_ms: Option<f64>,
}Expand description
One round of observations to evaluate the configured service level objectives against.
None means not measured — the corresponding objective is then skipped
rather than being assumed satisfied, so a disabled subsystem never
silently produces a clean bill of health.
Fields§
§latency_ms: f64Average end-to-end latency (ms).
throughput_samples_per_sec: f64Achieved throughput (samples/second).
memory_usage_mb: f64Memory in use (MB).
cpu_utilization_percent: Option<f64>Measured CPU duty cycle of the streaming path (percent).
prediction_accuracy: Option<f64>Measured accuracy of the predictive engine in [0, 1].
stream_synchronization_delay_ms: Option<f64>Measured inter-stream synchronization skew (ms).
Implementations§
Source§impl QoSObservation
impl QoSObservation
Sourcepub fn from_metrics(metrics: &StreamingMetrics) -> Self
pub fn from_metrics(metrics: &StreamingMetrics) -> Self
Build an observation from the streaming metrics alone; the fields the metrics cannot speak to are left unmeasured.
Trait Implementations§
Source§impl Clone for QoSObservation
impl Clone for QoSObservation
Source§fn clone(&self) -> QoSObservation
fn clone(&self) -> QoSObservation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QoSObservation
impl Debug for QoSObservation
Source§impl Default for QoSObservation
impl Default for QoSObservation
Source§fn default() -> QoSObservation
fn default() -> QoSObservation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QoSObservation
impl RefUnwindSafe for QoSObservation
impl Send for QoSObservation
impl Sync for QoSObservation
impl Unpin for QoSObservation
impl UnsafeUnpin for QoSObservation
impl UnwindSafe for QoSObservation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.