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: String
tracking_id is persistent in meta data
event_time_sec: u64
event_time is when the event is created
event_stage: i32
event_stage describes in which process the event happens
event_name: String
feature_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: i64
catalog_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: String
node is the node that creates the event
is_test: bool
mark 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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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> 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