pub enum Telemetry {
ParameterValue {
port: PortId,
parameter: ParameterId,
value: f32,
timestamp: u64,
},
SignalData {
node_id: NodeId,
channel: usize,
data: Vec<f32>,
timestamp: u64,
sample_rate: f32,
},
Peak {
port: PortId,
value: f32,
timestamp: u64,
hold_time_ms: Option<u32>,
},
Event {
source: String,
kind: String,
data: Vec<f32>,
timestamp: u64,
description: Option<String>,
},
Violation {
component: String,
expected_ns: u64,
actual_ns: u64,
value: Option<f32>,
timestamp: u64,
},
}Expand description
Telemetry data emitted by signal graph nodes.
Variants§
ParameterValue
A parameter value change.
Fields
§
parameter: ParameterIdTarget parameter.
SignalData
Signal or sensor signal data.
Fields
Peak
Peak value reading.
Fields
Event
Named event with float payload.
Fields
Violation
Micro-control timing violation.
Implementations§
Source§impl Telemetry
impl Telemetry
Sourcepub fn parameter(port: PortId, parameter: ParameterId, value: f32) -> Self
pub fn parameter(port: PortId, parameter: ParameterId, value: f32) -> Self
Create a parameter value telemetry event.
Sourcepub fn event(
source: impl Into<String>,
kind: impl Into<String>,
data: Vec<f32>,
) -> Self
pub fn event( source: impl Into<String>, kind: impl Into<String>, data: Vec<f32>, ) -> Self
Create an event telemetry event.
Sourcepub fn event_with_description(
source: impl Into<String>,
kind: impl Into<String>,
data: Vec<f32>,
description: impl Into<String>,
) -> Self
pub fn event_with_description( source: impl Into<String>, kind: impl Into<String>, data: Vec<f32>, description: impl Into<String>, ) -> Self
Create an event telemetry event with a description.
Sourcepub fn violation(
component: impl Into<String>,
expected_ns: u64,
actual_ns: u64,
value: Option<f32>,
) -> Self
pub fn violation( component: impl Into<String>, expected_ns: u64, actual_ns: u64, value: Option<f32>, ) -> Self
Create a micro-control violation telemetry event.
Sourcepub fn kind(&self) -> TelemetryKind
pub fn kind(&self) -> TelemetryKind
Return the telemetry type category.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Telemetry
impl RefUnwindSafe for Telemetry
impl Send for Telemetry
impl Sync for Telemetry
impl Unpin for Telemetry
impl UnsafeUnpin for Telemetry
impl UnwindSafe for Telemetry
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