pub struct EventMessage {
pub tracking_id: String,
pub event_time_sec: u64,
pub event_stage: i32,
pub event_name: String,
pub connector_name: Option<String>,
pub object: Option<i32>,
pub catalog_id: i64,
pub attributes: Option<String>,
pub node: String,
pub is_test: bool,
}Fields§
§tracking_id: Stringtracking_id is persistent in meta data
event_time_sec: u64event_time is when the event is created
event_stage: i32event_stage describes in which process the event happens
event_name: Stringfeature_name is the name of the feature triggered the event
connector_name: Option<String>connector_name is the name of the connector involves
object: Option<i32>connector_direction is the direction of data flow, can be source or sink
catalog_id: i64catalog_id is the id of the catalog involves (table_id/source_id/…)
attributes: Option<String>attributes is the additional information of the event: json format ser to string
node: Stringnode is the node that creates the event
is_test: boolmark the event is a test message
Implementations§
Source§impl EventMessage
impl EventMessage
Sourcepub fn event_stage(&self) -> TelemetryEventStage
pub fn event_stage(&self) -> TelemetryEventStage
Returns the enum value of event_stage, or the default if the field is set to an invalid enum value.
Sourcepub fn set_event_stage(&mut self, value: TelemetryEventStage)
pub fn set_event_stage(&mut self, value: TelemetryEventStage)
Sets event_stage to the provided enum value.
Sourcepub fn connector_name(&self) -> &str
pub fn connector_name(&self) -> &str
Returns the value of connector_name, or the default value if connector_name is unset.
Sourcepub fn attributes(&self) -> &str
pub fn attributes(&self) -> &str
Returns the value of attributes, or the default value if attributes is unset.
Sourcepub fn object(&self) -> TelemetryDatabaseObject
pub fn object(&self) -> TelemetryDatabaseObject
Returns the enum value of object, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_object(&mut self, value: TelemetryDatabaseObject)
pub fn set_object(&mut self, value: TelemetryDatabaseObject)
Sets object to the provided enum value.
Source§impl EventMessage
impl EventMessage
pub fn get_tracking_id(&self) -> &String
pub fn get_event_time_sec(&self) -> u64
pub fn get_event_stage(&self) -> Result<TelemetryEventStage, PbFieldNotFound>
pub fn get_event_name(&self) -> &String
pub fn get_connector_name(&self) -> Result<&String, PbFieldNotFound>
pub fn get_object(&self) -> Result<&i32, PbFieldNotFound>
pub fn get_catalog_id(&self) -> i64
pub fn get_attributes(&self) -> Result<&String, PbFieldNotFound>
pub fn get_node(&self) -> &String
pub fn get_is_test(&self) -> bool
Trait Implementations§
Source§impl Clone for EventMessage
impl Clone for EventMessage
Source§fn clone(&self) -> EventMessage
fn clone(&self) -> EventMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EventMessage
impl Debug for EventMessage
Source§impl Default for EventMessage
impl Default for EventMessage
Source§impl<'de> Deserialize<'de> for EventMessage
impl<'de> Deserialize<'de> for EventMessage
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Message for EventMessage
impl Message for EventMessage
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 EventMessage
impl PartialEq for EventMessage
Source§impl Serialize for EventMessage
impl Serialize for EventMessage
impl StructuralPartialEq for EventMessage
Auto Trait Implementations§
impl Freeze for EventMessage
impl RefUnwindSafe for EventMessage
impl Send for EventMessage
impl Sync for EventMessage
impl Unpin for EventMessage
impl UnwindSafe for EventMessage
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,
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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