#[non_exhaustive]pub struct SearchServiceLevelObjectiveAttributes {Show 17 fields
pub all_tags: Option<Vec<String>>,
pub created_at: Option<i64>,
pub creator: Option<Option<SLOCreator>>,
pub description: Option<Option<String>>,
pub env_tags: Option<Vec<String>>,
pub groups: Option<Option<Vec<String>>>,
pub modified_at: Option<i64>,
pub monitor_ids: Option<Option<Vec<i64>>>,
pub name: Option<String>,
pub overall_status: Option<Vec<SLOOverallStatuses>>,
pub query: Option<Option<SearchSLOQuery>>,
pub service_tags: Option<Vec<String>>,
pub slo_type: Option<SLOType>,
pub status: Option<SLOStatus>,
pub team_tags: Option<Vec<String>>,
pub thresholds: Option<Vec<SearchSLOThreshold>>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
A service level objective object includes a service level indicator, thresholds
for one or more timeframes, and metadata (name
, description
, and tags
).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.A list of tags associated with this service level objective. Always included in service level objective responses (but may be empty).
created_at: Option<i64>
Creation timestamp (UNIX time in seconds)
Always included in service level objective responses.
creator: Option<Option<SLOCreator>>
The creator of the SLO
description: Option<Option<String>>
A user-defined description of the service level objective.
Always included in service level objective responses (but may be null
).
Optional in create/update requests.
Tags with the env
tag key.
groups: Option<Option<Vec<String>>>
A list of (up to 100) monitor groups that narrow the scope of a monitor service level objective. Included in service level objective responses if it is not empty.
modified_at: Option<i64>
Modification timestamp (UNIX time in seconds)
Always included in service level objective responses.
monitor_ids: Option<Option<Vec<i64>>>
A list of monitor ids that defines the scope of a monitor service level objective.
name: Option<String>
The name of the service level objective object.
overall_status: Option<Vec<SLOOverallStatuses>>
calculated status and error budget remaining.
query: Option<Option<SearchSLOQuery>>
A metric-based SLO. Required if type is metric
. Note that Datadog only allows the sum by aggregator
to be used because this will sum up all request counts instead of averaging them, or taking the max or
min of all of those requests.
Tags with the service
tag key.
slo_type: Option<SLOType>
The type of the service level objective.
status: Option<SLOStatus>
Status of the SLO’s primary timeframe.
Tags with the team
tag key.
thresholds: Option<Vec<SearchSLOThreshold>>
The thresholds (timeframes and associated targets) for this service level objective object.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl SearchServiceLevelObjectiveAttributes
impl SearchServiceLevelObjectiveAttributes
pub fn new() -> SearchServiceLevelObjectiveAttributes
pub fn created_at(self, value: i64) -> Self
pub fn creator(self, value: Option<SLOCreator>) -> Self
pub fn description(self, value: Option<String>) -> Self
pub fn groups(self, value: Option<Vec<String>>) -> Self
pub fn modified_at(self, value: i64) -> Self
pub fn monitor_ids(self, value: Option<Vec<i64>>) -> Self
pub fn name(self, value: String) -> Self
pub fn overall_status(self, value: Vec<SLOOverallStatuses>) -> Self
pub fn query(self, value: Option<SearchSLOQuery>) -> Self
pub fn slo_type(self, value: SLOType) -> Self
pub fn status(self, value: SLOStatus) -> Self
pub fn thresholds(self, value: Vec<SearchSLOThreshold>) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for SearchServiceLevelObjectiveAttributes
impl Clone for SearchServiceLevelObjectiveAttributes
Source§fn clone(&self) -> SearchServiceLevelObjectiveAttributes
fn clone(&self) -> SearchServiceLevelObjectiveAttributes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'de> Deserialize<'de> for SearchServiceLevelObjectiveAttributes
impl<'de> Deserialize<'de> for SearchServiceLevelObjectiveAttributes
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>,
Source§impl PartialEq for SearchServiceLevelObjectiveAttributes
impl PartialEq for SearchServiceLevelObjectiveAttributes
Source§fn eq(&self, other: &SearchServiceLevelObjectiveAttributes) -> bool
fn eq(&self, other: &SearchServiceLevelObjectiveAttributes) -> bool
self
and other
values to be equal, and is used by ==
.