pub struct EventSummary {
pub formation_id: String,
pub window_start: Option<Timestamp>,
pub window_end: Option<Timestamp>,
pub event_class: i32,
pub event_type: String,
pub event_count: u32,
pub source_node_ids: Vec<String>,
pub summary_type_url: String,
pub summary_value: Vec<u8>,
}Expand description
Summary of aggregated events (generated by EchelonAggregator)
Fields§
§formation_id: StringFormation that generated this summary
window_start: Option<Timestamp>Aggregation window timestamps
window_end: Option<Timestamp>§event_class: i32Event class and type being summarized
event_type: String§event_count: u32Count of events in this summary
source_node_ids: Vec<String>Nodes that contributed events
summary_type_url: StringApplication-specific summary payload
summary_value: Vec<u8>Implementations§
Source§impl EventSummary
impl EventSummary
Sourcepub fn event_class(&self) -> EventClass
pub fn event_class(&self) -> EventClass
Returns the enum value of event_class, or the default if the field is set to an invalid enum value.
Sourcepub fn set_event_class(&mut self, value: EventClass)
pub fn set_event_class(&mut self, value: EventClass)
Sets event_class to the provided enum value.
Trait Implementations§
Source§impl Clone for EventSummary
impl Clone for EventSummary
Source§fn clone(&self) -> EventSummary
fn clone(&self) -> EventSummary
Returns a duplicate of the value. Read more
1.0.0 · 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 EventSummary
impl Debug for EventSummary
Source§impl Default for EventSummary
impl Default for EventSummary
Source§fn default() -> EventSummary
fn default() -> EventSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventSummary
impl<'de> Deserialize<'de> for EventSummary
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventSummary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventSummary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for EventSummary
impl Message for EventSummary
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for EventSummary
impl PartialEq for EventSummary
Source§impl Serialize for EventSummary
impl Serialize for EventSummary
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 StructuralPartialEq for EventSummary
Auto Trait Implementations§
impl Freeze for EventSummary
impl RefUnwindSafe for EventSummary
impl Send for EventSummary
impl Sync for EventSummary
impl Unpin for EventSummary
impl UnsafeUnpin for EventSummary
impl UnwindSafe for EventSummary
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<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 more