Enum mz_storage::source::healthcheck::SourceStatus
source · pub enum SourceStatus {
Setup,
Starting,
Running,
Stalled,
Failed,
Dropped,
}
Expand description
Identify the state a worker for a given source can be at a point in time
Variants§
Setup
Initial state of a Source during initialization.
Starting
Intended to be the state while the clusterd
process is initializing itself
Pushed by the Healthchecker on creation.
Running
State indicating the source is running fine. Pushed automatically as long as rows are being consumed.
Stalled
Represents a stall in the ingestion process that might get resolved. Existing data is still available and queryable.
Failed
Represents a irrecoverable failure in the pipeline. Data from this collection is not queryable any longer. The only valid transition from Failed is Dropped.
Dropped
Represents a source that was dropped.
TODO(andrioni): make the controller push this update, as Drop
is not called for
the Healthchecker.
Implementations§
source§impl SourceStatus
impl SourceStatus
fn name(&self) -> &'static str
fn can_transition(&self, new_status: &SourceStatus) -> bool
Trait Implementations§
source§impl Clone for SourceStatus
impl Clone for SourceStatus
source§fn clone(&self) -> SourceStatus
fn clone(&self) -> SourceStatus
Returns a copy of the value. Read more
1.0.0 · 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 SourceStatus
impl Debug for SourceStatus
source§impl Display for SourceStatus
impl Display for SourceStatus
source§impl PartialEq<SourceStatus> for SourceStatus
impl PartialEq<SourceStatus> for SourceStatus
source§fn eq(&self, other: &SourceStatus) -> bool
fn eq(&self, other: &SourceStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&str> for SourceStatus
impl TryFrom<&str> for SourceStatus
impl Eq for SourceStatus
impl StructuralEq for SourceStatus
impl StructuralPartialEq for SourceStatus
Auto Trait Implementations§
impl RefUnwindSafe for SourceStatus
impl Send for SourceStatus
impl Sync for SourceStatus
impl Unpin for SourceStatus
impl UnwindSafe for SourceStatus
Blanket Implementations§
source§impl<T> DisplayExt for Twhere
T: Display,
impl<T> DisplayExt for Twhere
T: Display,
source§fn to_string_alt(&self) -> String
fn to_string_alt(&self) -> String
Formats an object with the “alternative” format (
{:#}
) and returns it.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.