pub struct BlockMeta {
pub ulid: String,
pub min_time: i64,
pub max_time: i64,
pub stats: BlockStats,
pub compaction: BlockMetaCompaction,
pub version: i32,
}Expand description
The decoded contents of a block’s meta.json.
Fields§
§ulid: StringBlock ULID. crate::BlockReader fills this from the directory name
when the field is missing.
min_time: i64Inclusive lower bound of the block in milliseconds since the Unix epoch.
max_time: i64Exclusive upper bound of the block in milliseconds since the Unix epoch.
stats: BlockStatsCounters captured when the block was written.
compaction: BlockMetaCompactionCompaction lineage.
version: i32meta.json format version, not the index version.
Prometheus always writes 1 here; the index format version lives in the
index header and is exposed as crate::IndexReader::version.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BlockMeta
impl<'de> Deserialize<'de> for BlockMeta
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 BlockMeta
impl Freeze for BlockMetawhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ParentMeta>: Freeze,
impl Move for BlockMeta
impl RefUnwindSafe for BlockMeta
impl Send for BlockMetawhere
RawVecInner: Send,
impl Sync for BlockMetawhere
RawVecInner: Sync,
impl Unpin for BlockMeta
impl UnsafeUnpin for BlockMetawhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ParentMeta>: UnsafeUnpin,
impl UnwindSafe for BlockMetawhere
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