Struct assemblyline_models::datastore::alert::Event
source · pub struct Event {
pub entity_type: EntityType,
pub entity_id: String,
pub entity_name: String,
pub ts: DateTime<Utc>,
pub labels: Vec<String>,
pub status: Option<Statuses>,
pub priority: Option<Priorities>,
}
Expand description
Model of Workflow Event
Fields§
§entity_type: EntityType
Type of entity associated to event
entity_id: String
ID of entity associated to event
entity_name: String
Name of entity
ts: DateTime<Utc>
Timestamp of event
labels: Vec<String>
Labels added during event
status: Option<Statuses>
Status applied during event
priority: Option<Priorities>
Priority applied during event
Trait Implementations§
source§impl Described<ElasticMeta> for Event
impl Described<ElasticMeta> for Event
source§fn metadata() -> Descriptor<ElasticMeta>
fn metadata() -> Descriptor<ElasticMeta>
Get self description of this type
source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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