#[non_exhaustive]pub struct AnomalyInstanceBuilder { /* private fields */ }
Expand description
A builder for AnomalyInstance
.
Implementations§
source§impl AnomalyInstanceBuilder
impl AnomalyInstanceBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The universally unique identifier (UUID) of an instance of an anomaly in a metric.
This field is required.sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The universally unique identifier (UUID) of an instance of an anomaly in a metric.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The universally unique identifier (UUID) of an instance of an anomaly in a metric.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The start time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
This field is required.sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The start time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
The start time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
sourcepub fn end_time(self, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
The end time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
The end time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
sourcepub fn get_end_time(&self) -> &Option<DateTime>
pub fn get_end_time(&self) -> &Option<DateTime>
The end time of the period during which the metric is flagged as anomalous. This is specified using the ISO 8601 format. For example, 2020-06-01T13:15:02.001Z represents 1 millisecond past June 1, 2020 1:15:02 PM UTC.
sourcepub fn user_feedback(self, input: UserFeedback) -> Self
pub fn user_feedback(self, input: UserFeedback) -> Self
Feedback type on a specific instance of anomaly submitted by the user.
sourcepub fn set_user_feedback(self, input: Option<UserFeedback>) -> Self
pub fn set_user_feedback(self, input: Option<UserFeedback>) -> Self
Feedback type on a specific instance of anomaly submitted by the user.
sourcepub fn get_user_feedback(&self) -> &Option<UserFeedback>
pub fn get_user_feedback(&self) -> &Option<UserFeedback>
Feedback type on a specific instance of anomaly submitted by the user.
sourcepub fn build(self) -> Result<AnomalyInstance, BuildError>
pub fn build(self) -> Result<AnomalyInstance, BuildError>
Consumes the builder and constructs a AnomalyInstance
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AnomalyInstanceBuilder
impl Clone for AnomalyInstanceBuilder
source§fn clone(&self) -> AnomalyInstanceBuilder
fn clone(&self) -> AnomalyInstanceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnomalyInstanceBuilder
impl Debug for AnomalyInstanceBuilder
source§impl Default for AnomalyInstanceBuilder
impl Default for AnomalyInstanceBuilder
source§fn default() -> AnomalyInstanceBuilder
fn default() -> AnomalyInstanceBuilder
source§impl PartialEq for AnomalyInstanceBuilder
impl PartialEq for AnomalyInstanceBuilder
source§fn eq(&self, other: &AnomalyInstanceBuilder) -> bool
fn eq(&self, other: &AnomalyInstanceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AnomalyInstanceBuilder
Auto Trait Implementations§
impl Freeze for AnomalyInstanceBuilder
impl RefUnwindSafe for AnomalyInstanceBuilder
impl Send for AnomalyInstanceBuilder
impl Sync for AnomalyInstanceBuilder
impl Unpin for AnomalyInstanceBuilder
impl UnwindSafe for AnomalyInstanceBuilder
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> 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