public static interface Behavior.Builder extends SdkPojo, CopyableBuilder<Behavior.Builder,Behavior>
Modifier and Type | Method and Description |
---|---|
Behavior.Builder |
criteria(BehaviorCriteria criteria)
The criteria that determine if a device is behaving normally in regard to the
metric . |
default Behavior.Builder |
criteria(Consumer<BehaviorCriteria.Builder> criteria)
The criteria that determine if a device is behaving normally in regard to the
metric . |
Behavior.Builder |
metric(String metric)
What is measured by the behavior.
|
default Behavior.Builder |
metricDimension(Consumer<MetricDimension.Builder> metricDimension)
The dimension for a metric in your behavior.
|
Behavior.Builder |
metricDimension(MetricDimension metricDimension)
The dimension for a metric in your behavior.
|
Behavior.Builder |
name(String name)
The name you've given to the behavior.
|
Behavior.Builder |
suppressAlerts(Boolean suppressAlerts)
Suppresses alerts.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
Behavior.Builder name(String name)
The name you've given to the behavior.
name
- The name you've given to the behavior.Behavior.Builder metric(String metric)
What is measured by the behavior.
metric
- What is measured by the behavior.Behavior.Builder metricDimension(MetricDimension 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.
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.default Behavior.Builder metricDimension(Consumer<MetricDimension.Builder> 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.
MetricDimension.Builder
avoiding the need to
create one manually via MetricDimension.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to metricDimension(MetricDimension)
.metricDimension
- a consumer that will call methods on MetricDimension.Builder
metricDimension(MetricDimension)
Behavior.Builder criteria(BehaviorCriteria criteria)
The criteria that determine if a device is behaving normally in regard to the metric
.
criteria
- The criteria that determine if a device is behaving normally in regard to the metric
.default Behavior.Builder criteria(Consumer<BehaviorCriteria.Builder> criteria)
The criteria that determine if a device is behaving normally in regard to the metric
.
BehaviorCriteria.Builder
avoiding the need to
create one manually via BehaviorCriteria.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to criteria(BehaviorCriteria)
.criteria
- a consumer that will call methods on BehaviorCriteria.Builder
criteria(BehaviorCriteria)
Behavior.Builder suppressAlerts(Boolean suppressAlerts)
Suppresses alerts.
suppressAlerts
- Suppresses alerts.Copyright © 2021. All rights reserved.