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 have given to the behavior.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildBehavior.Builder name(String name)
The name you have given to the behavior.
name - The name you have 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 only to MQTT topics whose name match the pattern specified in the
dimension.
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 only to MQTT topics whose name match the pattern specified
in the dimension.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 only to MQTT topics whose name match the pattern specified in the
dimension.
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.BuildermetricDimension(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.Buildercriteria(BehaviorCriteria)Copyright © 2020. All rights reserved.