pub struct PrometheusConfig {
pub global: Option<PrometheusGlobal>,
pub scrape_configs: Vec<ScrapeConfig>,
pub rule_files: Vec<String>,
pub alerting: Option<AlertingConfig>,
pub remote_write: Vec<Value>,
pub remote_read: Vec<Value>,
pub storage: Option<Value>,
}Fields§
§global: Option<PrometheusGlobal>§scrape_configs: Vec<ScrapeConfig>§rule_files: Vec<String>§alerting: Option<AlertingConfig>§remote_write: Vec<Value>§remote_read: Vec<Value>§storage: Option<Value>Implementations§
Source§impl PrometheusConfig
impl PrometheusConfig
pub fn from_value(data: Value) -> Result<Self, String>
Trait Implementations§
Source§impl Clone for PrometheusConfig
impl Clone for PrometheusConfig
Source§fn clone(&self) -> PrometheusConfig
fn clone(&self) -> PrometheusConfig
Returns a duplicate 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 ConfigValidator for PrometheusConfig
impl ConfigValidator for PrometheusConfig
Source§fn validate_structure(&self) -> Vec<Diagnostic>
fn validate_structure(&self) -> Vec<Diagnostic>
Structural validation — errors mean the config is invalid. Read more
Source§fn validate_semantics(&self) -> Vec<Diagnostic>
fn validate_semantics(&self) -> Vec<Diagnostic>
Semantic validation — best-practice warnings, hints, and info. Read more
Source§fn validate(&self) -> ValidationResult
fn validate(&self) -> ValidationResult
Full validation: structure + semantics combined.
Source§impl Debug for PrometheusConfig
impl Debug for PrometheusConfig
Source§impl<'de> Deserialize<'de> for PrometheusConfig
impl<'de> Deserialize<'de> for PrometheusConfig
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 Freeze for PrometheusConfig
impl RefUnwindSafe for PrometheusConfig
impl Send for PrometheusConfig
impl Sync for PrometheusConfig
impl Unpin for PrometheusConfig
impl UnsafeUnpin for PrometheusConfig
impl UnwindSafe for PrometheusConfig
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