pub struct ElectricalComponentTelemetry {
pub electrical_component_id: u64,
pub metric_samples: Vec<MetricSample>,
pub state_snapshots: Vec<ElectricalComponentStateSnapshot>,
}Expand description
ElectricalComponentTelemetry message aggregates multiple metrics, operational states, and errors, related to a specific electrical component in a microgrid.
!!! example Example output of a telemetry message: ``` { electrical_component_id: 13, metric_samples: [ /* list of metrics for multiple timestamps / { sample_time: “2023-10-01T00:00:00Z”, metric: “DC_VOLTAGE_V”, value: {}, bounds: {}, connection: “battery_0” }, { sample_time: “2023-10-01T00:00:00Z”, metric: “DC_VOLTAGE_V”, value: {}, bounds: {}, connection: “pv_0” } ], state_snapshots: [ / list of states for multiple timestamps */ { sample_time: “2023-10-01T00:00:00Z”, states: [], warnings: [], errors: [], }, { sample_time: “2023-10-01T00:00:00Z”, states: [], warnings: [], errors: [], }, ] }
Fields§
§electrical_component_id: u64The ID of the electrical component for which the telemetry is collected.
metric_samples: Vec<MetricSample>List of measurements for a metric of the specific electrical component.
state_snapshots: Vec<ElectricalComponentStateSnapshot>List of state snapshots of a specific electrical component.
Trait Implementations§
Source§impl Clone for ElectricalComponentTelemetry
impl Clone for ElectricalComponentTelemetry
Source§fn clone(&self) -> ElectricalComponentTelemetry
fn clone(&self) -> ElectricalComponentTelemetry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ElectricalComponentTelemetry
impl Debug for ElectricalComponentTelemetry
Source§impl Message for ElectricalComponentTelemetry
impl Message for ElectricalComponentTelemetry
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ElectricalComponentTelemetry
impl PartialEq for ElectricalComponentTelemetry
Source§fn eq(&self, other: &ElectricalComponentTelemetry) -> bool
fn eq(&self, other: &ElectricalComponentTelemetry) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ElectricalComponentTelemetry
Auto Trait Implementations§
impl Freeze for ElectricalComponentTelemetry
impl RefUnwindSafe for ElectricalComponentTelemetry
impl Send for ElectricalComponentTelemetry
impl Sync for ElectricalComponentTelemetry
impl Unpin for ElectricalComponentTelemetry
impl UnsafeUnpin for ElectricalComponentTelemetry
impl UnwindSafe for ElectricalComponentTelemetry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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>
T in a tonic::Request