public static interface AnomalyInstance.Builder extends SdkPojo, CopyableBuilder<AnomalyInstance.Builder,AnomalyInstance>
Modifier and Type | Method and Description |
---|---|
AnomalyInstance.Builder |
endTime(Instant endTime)
The end time of the period during which the metric is flagged as anomalous.
|
AnomalyInstance.Builder |
id(String id)
The universally unique identifier (UUID) of an instance of an anomaly in a metric.
|
AnomalyInstance.Builder |
startTime(Instant startTime)
The start time of the period during which the metric is flagged as anomalous.
|
default AnomalyInstance.Builder |
userFeedback(Consumer<UserFeedback.Builder> userFeedback)
Feedback type on a specific instance of anomaly submitted by the user.
|
AnomalyInstance.Builder |
userFeedback(UserFeedback userFeedback)
Feedback type on a specific instance of anomaly submitted by the user.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
AnomalyInstance.Builder endTime(Instant endTime)
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.
endTime
- 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.AnomalyInstance.Builder id(String id)
The universally unique identifier (UUID) of an instance of an anomaly in a metric.
id
- The universally unique identifier (UUID) of an instance of an anomaly in a metric.AnomalyInstance.Builder startTime(Instant startTime)
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.
startTime
- 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.AnomalyInstance.Builder userFeedback(UserFeedback userFeedback)
Feedback type on a specific instance of anomaly submitted by the user.
userFeedback
- Feedback type on a specific instance of anomaly submitted by the user.default AnomalyInstance.Builder userFeedback(Consumer<UserFeedback.Builder> userFeedback)
Feedback type on a specific instance of anomaly submitted by the user.
This is a convenience that creates an instance of theUserFeedback.Builder
avoiding the need to
create one manually via UserFeedback.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to userFeedback(UserFeedback)
.userFeedback
- a consumer that will call methods on UserFeedback.Builder
userFeedback(UserFeedback)