pub struct LsmMetrics {
pub estimate_live_data_bytes: Option<u64>,
pub estimate_num_keys: Option<u64>,
pub total_sst_bytes: Option<u64>,
pub memtable_bytes: Option<u64>,
pub num_running_compactions: Option<u64>,
pub num_running_flushes: Option<u64>,
pub open_total_puts: Option<u64>,
pub compaction_event_count: Option<u64>,
pub named_graph_count: Option<u64>,
pub block_cache_capacity_bytes: Option<u64>,
pub block_cache_usage_bytes: Option<u64>,
}Expand description
Optional LSM / process counters. Memory backends omit the RocksDB fields.
Fields§
§estimate_live_data_bytes: Option<u64>§estimate_num_keys: Option<u64>§total_sst_bytes: Option<u64>§memtable_bytes: Option<u64>§num_running_compactions: Option<u64>§num_running_flushes: Option<u64>§open_total_puts: Option<u64>§compaction_event_count: Option<u64>§named_graph_count: Option<u64>§block_cache_capacity_bytes: Option<u64>Process-wide block cache: configured capacity, and bytes currently charged to cached blocks (data + any pinned index/filter blocks). Absent on memory backends (no block cache exists).
block_cache_usage_bytes: Option<u64>Implementations§
Source§impl LsmMetrics
impl LsmMetrics
Sourcepub fn estimate_live_data_bytes(&self) -> u64
pub fn estimate_live_data_bytes(&self) -> u64
Returns the value of estimate_live_data_bytes, or the default value if estimate_live_data_bytes is unset.
Sourcepub fn estimate_num_keys(&self) -> u64
pub fn estimate_num_keys(&self) -> u64
Returns the value of estimate_num_keys, or the default value if estimate_num_keys is unset.
Sourcepub fn total_sst_bytes(&self) -> u64
pub fn total_sst_bytes(&self) -> u64
Returns the value of total_sst_bytes, or the default value if total_sst_bytes is unset.
Sourcepub fn memtable_bytes(&self) -> u64
pub fn memtable_bytes(&self) -> u64
Returns the value of memtable_bytes, or the default value if memtable_bytes is unset.
Sourcepub fn num_running_compactions(&self) -> u64
pub fn num_running_compactions(&self) -> u64
Returns the value of num_running_compactions, or the default value if num_running_compactions is unset.
Sourcepub fn num_running_flushes(&self) -> u64
pub fn num_running_flushes(&self) -> u64
Returns the value of num_running_flushes, or the default value if num_running_flushes is unset.
Sourcepub fn open_total_puts(&self) -> u64
pub fn open_total_puts(&self) -> u64
Returns the value of open_total_puts, or the default value if open_total_puts is unset.
Sourcepub fn compaction_event_count(&self) -> u64
pub fn compaction_event_count(&self) -> u64
Returns the value of compaction_event_count, or the default value if compaction_event_count is unset.
Sourcepub fn named_graph_count(&self) -> u64
pub fn named_graph_count(&self) -> u64
Returns the value of named_graph_count, or the default value if named_graph_count is unset.
Sourcepub fn block_cache_capacity_bytes(&self) -> u64
pub fn block_cache_capacity_bytes(&self) -> u64
Returns the value of block_cache_capacity_bytes, or the default value if block_cache_capacity_bytes is unset.
Sourcepub fn block_cache_usage_bytes(&self) -> u64
pub fn block_cache_usage_bytes(&self) -> u64
Returns the value of block_cache_usage_bytes, or the default value if block_cache_usage_bytes is unset.
Trait Implementations§
Source§impl Clone for LsmMetrics
impl Clone for LsmMetrics
Source§fn clone(&self) -> LsmMetrics
fn clone(&self) -> LsmMetrics
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LsmMetrics
impl Debug for LsmMetrics
Source§impl Default for LsmMetrics
impl Default for LsmMetrics
Source§impl Hash for LsmMetrics
impl Hash for LsmMetrics
Source§impl Message for LsmMetrics
impl Message for LsmMetrics
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 LsmMetrics
impl PartialEq for LsmMetrics
impl Copy for LsmMetrics
impl Eq for LsmMetrics
impl StructuralPartialEq for LsmMetrics
Auto Trait Implementations§
impl Freeze for LsmMetrics
impl RefUnwindSafe for LsmMetrics
impl Send for LsmMetrics
impl Sync for LsmMetrics
impl Unpin for LsmMetrics
impl UnsafeUnpin for LsmMetrics
impl UnwindSafe for LsmMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
§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].