pub struct RuntimeInformation { /* private fields */ }Expand description
An object containing Prometheus server build information.
Implementations§
source§impl RuntimeInformation
impl RuntimeInformation
sourcepub fn start_time(&self) -> &OffsetDateTime
pub fn start_time(&self) -> &OffsetDateTime
Get the server start time.
sourcepub fn reload_config_success(&self) -> bool
pub fn reload_config_success(&self) -> bool
Check if the last configuration reload was successful.
sourcepub fn last_config_time(&self) -> &OffsetDateTime
pub fn last_config_time(&self) -> &OffsetDateTime
Get the time of last configuration reload.
pub fn corruption_count(&self) -> i64
pub fn goroutine_count(&self) -> usize
pub fn go_max_procs(&self) -> usize
pub fn go_gc(&self) -> &str
pub fn go_debug(&self) -> &str
pub fn storage_retention(&self) -> &Duration
Trait Implementations§
source§impl Clone for RuntimeInformation
impl Clone for RuntimeInformation
source§fn clone(&self) -> RuntimeInformation
fn clone(&self) -> RuntimeInformation
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 RuntimeInformation
impl Debug for RuntimeInformation
source§impl<'de> Deserialize<'de> for RuntimeInformation
impl<'de> Deserialize<'de> for RuntimeInformation
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