pub enum ProgressUpdate {
Show 14 variants
Started {
job_id: Uuid,
job_type: JobType,
total_steps: usize,
total_workspaces: usize,
timestamp: DateTime<Utc>,
},
Completed {
job_id: Uuid,
duration_ms: u64,
timestamp: DateTime<Utc>,
},
Failed {
job_id: Uuid,
error: String,
timestamp: DateTime<Utc>,
},
WorkspaceStarted {
job_id: Uuid,
workspace: String,
timestamp: DateTime<Utc>,
},
WorkspaceCompleted {
job_id: Uuid,
workspace: String,
duration_ms: u64,
timestamp: DateTime<Utc>,
},
StepStarted {
job_id: Uuid,
step_name: String,
workspace: String,
phase: ExecutionPhase,
timestamp: DateTime<Utc>,
},
StepCompleted {
job_id: Uuid,
step_name: String,
workspace: String,
phase: ExecutionPhase,
rows: usize,
duration_ms: u64,
timestamp: DateTime<Utc>,
},
StepFailed {
job_id: Uuid,
step_name: String,
workspace: String,
phase: ExecutionPhase,
error: String,
timestamp: DateTime<Utc>,
},
StepSkipped {
job_id: Uuid,
step_name: String,
workspace: String,
phase: ExecutionPhase,
reason: String,
timestamp: DateTime<Utc>,
},
VariablesExtracted {
job_id: Uuid,
step_name: String,
workspace: String,
variables: Vec<String>,
timestamp: DateTime<Utc>,
},
ConditionEvaluated {
job_id: Uuid,
step_name: String,
condition: String,
result: bool,
timestamp: DateTime<Utc>,
},
ForeachProgress {
job_id: Uuid,
step_name: String,
workspace: String,
current: usize,
total: usize,
timestamp: DateTime<Utc>,
},
HttpExecuted {
job_id: Uuid,
step_name: String,
url: String,
status: u16,
duration_ms: u64,
timestamp: DateTime<Utc>,
},
Debug {
job_id: Uuid,
message: String,
timestamp: DateTime<Utc>,
},
}Expand description
Progress update message sent during execution
Variants§
Started
Execution has started
Fields
Completed
Execution completed successfully
Failed
Execution failed
WorkspaceStarted
Workspace execution started
WorkspaceCompleted
Workspace execution completed
StepStarted
A step/query has started
Fields
§
phase: ExecutionPhaseStepCompleted
A step/query completed successfully
Fields
§
phase: ExecutionPhaseStepFailed
A step/query failed
Fields
§
phase: ExecutionPhaseStepSkipped
A step was skipped (condition not met, dependency failed, etc.)
Fields
§
phase: ExecutionPhaseVariablesExtracted
Variables extracted from a step (investigation only)
Fields
ConditionEvaluated
Condition evaluated (investigation only)
ForeachProgress
Foreach iteration progress (investigation only)
Fields
HttpExecuted
HTTP step executed (investigation only)
Fields
Debug
Debug message (only when verbose mode is enabled)
Implementations§
Trait Implementations§
Source§impl Clone for ProgressUpdate
impl Clone for ProgressUpdate
Source§fn clone(&self) -> ProgressUpdate
fn clone(&self) -> ProgressUpdate
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProgressUpdate
impl Debug for ProgressUpdate
Source§impl<'de> Deserialize<'de> for ProgressUpdate
impl<'de> Deserialize<'de> for ProgressUpdate
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 ProgressUpdate
impl RefUnwindSafe for ProgressUpdate
impl Send for ProgressUpdate
impl Sync for ProgressUpdate
impl Unpin for ProgressUpdate
impl UnwindSafe for ProgressUpdate
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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