Interface Behavior.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Behavior.Builder,
,Behavior> SdkBuilder<Behavior.Builder,
,Behavior> SdkPojo
- Enclosing class:
Behavior
-
Method Summary
Modifier and TypeMethodDescriptiondefault Behavior.Builder
criteria
(Consumer<BehaviorCriteria.Builder> criteria) The criteria that determine if a device is behaving normally in regard to themetric
.criteria
(BehaviorCriteria criteria) The criteria that determine if a device is behaving normally in regard to themetric
.exportMetric
(Boolean exportMetric) Value indicates exporting metrics related to the behavior when it is true.What is measured by the behavior.default Behavior.Builder
metricDimension
(Consumer<MetricDimension.Builder> metricDimension) The dimension for a metric in your behavior.metricDimension
(MetricDimension metricDimension) The dimension for a metric in your behavior.The name you've given to the behavior.suppressAlerts
(Boolean suppressAlerts) Suppresses alerts.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name you've given to the behavior.
- Parameters:
name
- The name you've given to the behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metric
What is measured by the behavior.
- Parameters:
metric
- What is measured by the behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDimension
The dimension for a metric in your behavior. For example, using a
TOPIC_FILTER
dimension, you can narrow down the scope of the metric to only MQTT topics where the name matches the pattern specified in the dimension. This can't be used with custom metrics.- Parameters:
metricDimension
- The dimension for a metric in your behavior. For example, using aTOPIC_FILTER
dimension, you can narrow down the scope of the metric to only MQTT topics where the name matches the pattern specified in the dimension. This can't be used with custom metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDimension
The dimension for a metric in your behavior. For example, using a
This is a convenience method that creates an instance of theTOPIC_FILTER
dimension, you can narrow down the scope of the metric to only MQTT topics where the name matches the pattern specified in the dimension. This can't be used with custom metrics.MetricDimension.Builder
avoiding the need to create one manually viaMetricDimension.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricDimension(MetricDimension)
.- Parameters:
metricDimension
- a consumer that will call methods onMetricDimension.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
criteria
The criteria that determine if a device is behaving normally in regard to the
metric
.In the IoT console, you can choose to be sent an alert through Amazon SNS when IoT Device Defender detects that a device is behaving anomalously.
- Parameters:
criteria
- The criteria that determine if a device is behaving normally in regard to themetric
.In the IoT console, you can choose to be sent an alert through Amazon SNS when IoT Device Defender detects that a device is behaving anomalously.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
criteria
The criteria that determine if a device is behaving normally in regard to the
metric
.In the IoT console, you can choose to be sent an alert through Amazon SNS when IoT Device Defender detects that a device is behaving anomalously.
BehaviorCriteria.Builder
avoiding the need to create one manually viaBehaviorCriteria.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocriteria(BehaviorCriteria)
.- Parameters:
criteria
- a consumer that will call methods onBehaviorCriteria.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
suppressAlerts
Suppresses alerts.
- Parameters:
suppressAlerts
- Suppresses alerts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exportMetric
Value indicates exporting metrics related to the behavior when it is true.
- Parameters:
exportMetric
- Value indicates exporting metrics related to the behavior when it is true.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-