pub struct IcebergCompactionStatus {Show 13 fields
pub sink_id: u32,
pub task_type: String,
pub trigger_interval_sec: u64,
pub trigger_snapshot_count: u64,
pub schedule_state: String,
pub next_compaction_after_sec: Option<u64>,
pub pending_snapshot_count: Option<u64>,
pub is_triggerable: bool,
pub last_success_at_ms: Option<i64>,
pub last_failure_at_ms: Option<i64>,
pub last_error: Option<String>,
pub consecutive_failures: u32,
pub compaction_lag_sec: Option<u64>,
}Fields§
§sink_id: u32§task_type: String§trigger_interval_sec: u64§trigger_snapshot_count: u64§schedule_state: String§next_compaction_after_sec: Option<u64>§pending_snapshot_count: Option<u64>V1 approximates pending snapshot backlog with in-memory sink commit backlog.
is_triggerable: bool§last_success_at_ms: Option<i64>Compaction health below is kept in meta memory and resets when meta restarts. Timestamps are Unix epoch milliseconds.
last_failure_at_ms: Option<i64>§last_error: Option<String>§consecutive_failures: u32§compaction_lag_sec: Option<u64>Commit-time gap between the latest observed snapshot and the snapshot consumed by the last completed compaction.
Implementations§
Source§impl IcebergCompactionStatus
impl IcebergCompactionStatus
Sourcepub fn next_compaction_after_sec(&self) -> u64
pub fn next_compaction_after_sec(&self) -> u64
Returns the value of next_compaction_after_sec, or the default value if next_compaction_after_sec is unset.
Sourcepub fn pending_snapshot_count(&self) -> u64
pub fn pending_snapshot_count(&self) -> u64
Returns the value of pending_snapshot_count, or the default value if pending_snapshot_count is unset.
Sourcepub fn last_success_at_ms(&self) -> i64
pub fn last_success_at_ms(&self) -> i64
Returns the value of last_success_at_ms, or the default value if last_success_at_ms is unset.
Sourcepub fn last_failure_at_ms(&self) -> i64
pub fn last_failure_at_ms(&self) -> i64
Returns the value of last_failure_at_ms, or the default value if last_failure_at_ms is unset.
Sourcepub fn last_error(&self) -> &str
pub fn last_error(&self) -> &str
Returns the value of last_error, or the default value if last_error is unset.
Sourcepub fn compaction_lag_sec(&self) -> u64
pub fn compaction_lag_sec(&self) -> u64
Returns the value of compaction_lag_sec, or the default value if compaction_lag_sec is unset.
Source§impl IcebergCompactionStatus
impl IcebergCompactionStatus
pub fn get_sink_id(&self) -> u32
pub fn get_task_type(&self) -> &String
pub fn get_trigger_interval_sec(&self) -> u64
pub fn get_trigger_snapshot_count(&self) -> u64
pub fn get_schedule_state(&self) -> &String
pub fn get_next_compaction_after_sec(&self) -> Result<&u64, PbFieldNotFound>
pub fn get_pending_snapshot_count(&self) -> Result<&u64, PbFieldNotFound>
pub fn get_is_triggerable(&self) -> bool
pub fn get_last_success_at_ms(&self) -> Result<&i64, PbFieldNotFound>
pub fn get_last_failure_at_ms(&self) -> Result<&i64, PbFieldNotFound>
pub fn get_last_error(&self) -> Result<&String, PbFieldNotFound>
pub fn get_consecutive_failures(&self) -> u32
pub fn get_compaction_lag_sec(&self) -> Result<&u64, PbFieldNotFound>
Trait Implementations§
Source§impl Clone for IcebergCompactionStatus
impl Clone for IcebergCompactionStatus
Source§fn clone(&self) -> IcebergCompactionStatus
fn clone(&self) -> IcebergCompactionStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IcebergCompactionStatus
impl Debug for IcebergCompactionStatus
Source§impl Default for IcebergCompactionStatus
impl Default for IcebergCompactionStatus
Source§impl<'de> Deserialize<'de> for IcebergCompactionStatus
impl<'de> Deserialize<'de> for IcebergCompactionStatus
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>,
impl Eq for IcebergCompactionStatus
Source§impl Hash for IcebergCompactionStatus
impl Hash for IcebergCompactionStatus
Source§impl Message for IcebergCompactionStatus
impl Message for IcebergCompactionStatus
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for IcebergCompactionStatus
impl PartialEq for IcebergCompactionStatus
Source§fn eq(&self, other: &IcebergCompactionStatus) -> bool
fn eq(&self, other: &IcebergCompactionStatus) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for IcebergCompactionStatus
impl Serialize for IcebergCompactionStatus
impl StructuralPartialEq for IcebergCompactionStatus
Auto Trait Implementations§
impl Freeze for IcebergCompactionStatus
impl RefUnwindSafe for IcebergCompactionStatus
impl Send for IcebergCompactionStatus
impl Sync for IcebergCompactionStatus
impl Unpin for IcebergCompactionStatus
impl UnsafeUnpin for IcebergCompactionStatus
impl UnwindSafe for IcebergCompactionStatus
Blanket Implementations§
impl<T> Allocation for T
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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
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<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].