#[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 ==
.