Struct aws_sdk_codeguruprofiler::model::anomaly_instance::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for AnomalyInstance
.
Implementations
sourceimpl Builder
impl Builder
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.
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 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.
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 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 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 build(self) -> AnomalyInstance
pub fn build(self) -> AnomalyInstance
Consumes the builder and constructs a AnomalyInstance
.