#[non_exhaustive]pub struct GetSLOHistoryOptionalParams {
pub target: Option<f64>,
pub apply_correction: Option<bool>,
}
Expand description
GetSLOHistoryOptionalParams is a struct for passing parameters to the method ServiceLevelObjectivesAPI::get_slo_history
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.target: Option<f64>
The SLO target. If target
is passed in, the response will include the remaining error budget and a timeframe value of custom
.
apply_correction: Option<bool>
Defaults to true
. If any SLO corrections are applied and this parameter is set to false
,
then the corrections will not be applied and the SLI values will not be affected.
Implementations§
Source§impl GetSLOHistoryOptionalParams
impl GetSLOHistoryOptionalParams
Sourcepub fn target(self, value: f64) -> Self
pub fn target(self, value: f64) -> Self
The SLO target. If target
is passed in, the response will include the remaining error budget and a timeframe value of custom
.
Sourcepub fn apply_correction(self, value: bool) -> Self
pub fn apply_correction(self, value: bool) -> Self
Defaults to true
. If any SLO corrections are applied and this parameter is set to false
,
then the corrections will not be applied and the SLI values will not be affected.
Trait Implementations§
Source§impl Clone for GetSLOHistoryOptionalParams
impl Clone for GetSLOHistoryOptionalParams
Source§fn clone(&self) -> GetSLOHistoryOptionalParams
fn clone(&self) -> GetSLOHistoryOptionalParams
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 Debug for GetSLOHistoryOptionalParams
impl Debug for GetSLOHistoryOptionalParams
Source§impl Default for GetSLOHistoryOptionalParams
impl Default for GetSLOHistoryOptionalParams
Source§fn default() -> GetSLOHistoryOptionalParams
fn default() -> GetSLOHistoryOptionalParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetSLOHistoryOptionalParams
impl RefUnwindSafe for GetSLOHistoryOptionalParams
impl Send for GetSLOHistoryOptionalParams
impl Sync for GetSLOHistoryOptionalParams
impl Unpin for GetSLOHistoryOptionalParams
impl UnwindSafe for GetSLOHistoryOptionalParams
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