pub struct Slo {Show 14 fields
pub id: String,
pub name: String,
pub slo_type: String,
pub query: Option<Value>,
pub thresholds: Option<Value>,
pub tags: Vec<String>,
pub monitor_ids: Vec<i64>,
pub monitor_tags: Option<Vec<String>>,
pub description: Option<String>,
pub created_at: Option<i64>,
pub modified_at: Option<i64>,
pub creator: Option<Value>,
pub groups: Option<Value>,
pub configured_alert_ids: Option<Value>,
}Expand description
A Datadog Service Level Objective as returned by GET /api/v1/slo
and GET /api/v1/slo/{id}.
The query and thresholds shapes vary by SLO type (metric / monitor
/ time-slice), so they’re preserved as raw serde_json::Value to keep
JSON / YAML output lossless without pulling Datadog’s variant schemas
into the type surface.
Fields§
§id: StringDatadog SLO identifier.
name: StringHuman-readable name.
slo_type: StringSLO type as reported by Datadog (metric, monitor, time_slice).
query: Option<Value>Query specification (raw — schema differs per SLO type).
thresholds: Option<Value>Target threshold definitions (raw — list of objects).
Tags applied to the SLO.
monitor_ids: Vec<i64>Underlying monitor ids (for monitor SLOs).
Tags propagated from underlying monitors.
description: Option<String>Optional description.
created_at: Option<i64>Creation timestamp (Datadog returns Unix epoch seconds).
modified_at: Option<i64>Last-modified timestamp (Datadog returns Unix epoch seconds).
creator: Option<Value>Creator (raw object).
groups: Option<Value>Optional grouping facets (raw — present for multi-group SLOs).
configured_alert_ids: Option<Value>Configured alert ids (raw — list of integers).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Slo
impl<'de> Deserialize<'de> for Slo
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>,
impl Eq for Slo
impl StructuralPartialEq for Slo
Auto Trait Implementations§
impl Freeze for Slo
impl RefUnwindSafe for Slo
impl Send for Slo
impl Sync for Slo
impl Unpin for Slo
impl UnsafeUnpin for Slo
impl UnwindSafe for Slo
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,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more