Struct prometheus_http_query::response::Targets
source · pub struct Targets { /* private fields */ }Expand description
Collection of active and dropped targets as returned by the API.
Implementations§
source§impl Targets
impl Targets
sourcepub fn active(&self) -> &[ActiveTarget]
pub fn active(&self) -> &[ActiveTarget]
Get a list of currently active targets.
sourcepub fn dropped(&self) -> &[DroppedTarget]
pub fn dropped(&self) -> &[DroppedTarget]
Get a list of dropped targets.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Targets
impl<'de> Deserialize<'de> for Targets
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