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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.