pub struct BlockMetaCompaction {
pub level: i32,
pub sources: Vec<String>,
pub parents: Vec<ParentMeta>,
pub deletable: bool,
pub failed: bool,
pub hints: Vec<String>,
}Expand description
Compaction lineage recorded in meta.json.
Useful to tell a freshly ingested block from a compacted one, and to know whether Prometheus considers a block deletable.
Fields§
§level: i32Compaction level; 0 means a block straight from the head.
sources: Vec<String>Blocks this one was built from, as ULIDs.
parents: Vec<ParentMeta>Time ranges that were merged into this block.
deletable: boolPrometheus marked the block as safe to delete.
failed: boolThe last compaction attempt failed.
hints: Vec<String>Free-form hints written by the compactor.
Trait Implementations§
Source§impl Clone for BlockMetaCompaction
impl Clone for BlockMetaCompaction
Source§impl Debug for BlockMetaCompaction
impl Debug for BlockMetaCompaction
Source§impl Default for BlockMetaCompaction
impl Default for BlockMetaCompaction
Source§impl<'de> Deserialize<'de> for BlockMetaCompaction
impl<'de> Deserialize<'de> for BlockMetaCompaction
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 Forget for BlockMetaCompaction
impl Freeze for BlockMetaCompaction
impl Move for BlockMetaCompaction
impl RefUnwindSafe for BlockMetaCompaction
impl Send for BlockMetaCompactionwhere
RawVecInner: Send,
impl Sync for BlockMetaCompactionwhere
RawVecInner: Sync,
impl Unpin for BlockMetaCompaction
impl UnsafeUnpin for BlockMetaCompactionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ParentMeta>: UnsafeUnpin,
impl UnwindSafe for BlockMetaCompactionwhere
RawVecInner: UnwindSafe,
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