#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NotificationStage {
#[prost(enumeration = "notification_stage::Stage", tag = "1")]
pub stage: i32,
#[prost(message, optional, tag = "2")]
pub event_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, tag = "3")]
pub notification_id: ::prost::alloc::string::String,
#[prost(enumeration = "notification_stage::Event", tag = "4")]
pub event: i32,
#[prost(string, tag = "5")]
pub message: ::prost::alloc::string::String,
}
pub mod notification_stage {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Stage {
Unspecified = 0,
Sent = 1,
SendFailure = 2,
Dropped = 3,
}
impl Stage {
pub fn as_str_name(&self) -> &'static str {
match self {
Stage::Unspecified => "STAGE_UNSPECIFIED",
Stage::Sent => "SENT",
Stage::SendFailure => "SEND_FAILURE",
Stage::Dropped => "DROPPED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STAGE_UNSPECIFIED" => Some(Self::Unspecified),
"SENT" => Some(Self::Sent),
"SEND_FAILURE" => Some(Self::SendFailure),
"DROPPED" => Some(Self::Dropped),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Event {
Unspecified = 0,
HealthStatusChange = 1,
}
impl Event {
pub fn as_str_name(&self) -> &'static str {
match self {
Event::Unspecified => "EVENT_UNSPECIFIED",
Event::HealthStatusChange => "HEALTH_STATUS_CHANGE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"EVENT_UNSPECIFIED" => Some(Self::Unspecified),
"HEALTH_STATUS_CHANGE" => Some(Self::HealthStatusChange),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceEvent {
#[prost(string, tag = "1")]
pub verb: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub stage: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub msg: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub trace_id: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub node_id: ::prost::alloc::string::String,
}