pub enum MapReduceEvent {
MapPhaseStarted {
total_items: usize,
timestamp: DateTime<Utc>,
},
MapPhaseCompleted {
successful: usize,
failed: usize,
timestamp: DateTime<Utc>,
},
AgentStarted {
agent_id: String,
item_id: String,
timestamp: DateTime<Utc>,
},
AgentCompleted {
agent_id: String,
item_id: String,
duration: Duration,
timestamp: DateTime<Utc>,
cleanup_status: Option<CleanupStatus>,
commits: Vec<String>,
json_log_location: Option<String>,
},
AgentFailed {
agent_id: String,
item_id: String,
error: String,
timestamp: DateTime<Utc>,
failure_reason: FailureReason,
json_log_location: Option<String>,
},
ReducePhaseStarted {
timestamp: DateTime<Utc>,
},
ReducePhaseCompleted {
timestamp: DateTime<Utc>,
},
}Expand description
MapReduce execution events
Variants§
MapPhaseStarted
Map phase started
MapPhaseCompleted
Map phase completed
AgentStarted
Agent started processing an item
AgentCompleted
Agent completed processing
Fields
§
cleanup_status: Option<CleanupStatus>AgentFailed
Agent failed processing
Fields
§
failure_reason: FailureReasonReducePhaseStarted
Reduce phase started
ReducePhaseCompleted
Reduce phase completed
Implementations§
Source§impl MapReduceEvent
impl MapReduceEvent
Sourcepub fn map_phase_started(total_items: usize) -> Self
pub fn map_phase_started(total_items: usize) -> Self
Create map phase started event
Sourcepub fn map_phase_completed(successful: usize, failed: usize) -> Self
pub fn map_phase_completed(successful: usize, failed: usize) -> Self
Create map phase completed event
Sourcepub fn agent_started(agent_id: String, item_id: String) -> Self
pub fn agent_started(agent_id: String, item_id: String) -> Self
Create agent started event
Sourcepub fn agent_completed(
agent_id: String,
item_id: String,
duration: Duration,
cleanup_status: Option<CleanupStatus>,
commits: Vec<String>,
json_log_location: Option<String>,
) -> Self
pub fn agent_completed( agent_id: String, item_id: String, duration: Duration, cleanup_status: Option<CleanupStatus>, commits: Vec<String>, json_log_location: Option<String>, ) -> Self
Create agent completed event
Sourcepub fn agent_failed(
agent_id: String,
item_id: String,
error: String,
failure_reason: FailureReason,
json_log_location: Option<String>,
) -> Self
pub fn agent_failed( agent_id: String, item_id: String, error: String, failure_reason: FailureReason, json_log_location: Option<String>, ) -> Self
Create agent failed event
Sourcepub fn reduce_phase_started() -> Self
pub fn reduce_phase_started() -> Self
Create reduce phase started event
Sourcepub fn reduce_phase_completed() -> Self
pub fn reduce_phase_completed() -> Self
Create reduce phase completed event
Trait Implementations§
Source§impl Clone for MapReduceEvent
impl Clone for MapReduceEvent
Source§fn clone(&self) -> MapReduceEvent
fn clone(&self) -> MapReduceEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MapReduceEvent
impl Debug for MapReduceEvent
Source§impl<'de> Deserialize<'de> for MapReduceEvent
impl<'de> Deserialize<'de> for MapReduceEvent
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 Freeze for MapReduceEvent
impl RefUnwindSafe for MapReduceEvent
impl Send for MapReduceEvent
impl Sync for MapReduceEvent
impl Unpin for MapReduceEvent
impl UnsafeUnpin for MapReduceEvent
impl UnwindSafe for MapReduceEvent
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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