Interface Behavior.Builder

    • Method Detail

      • name

        Behavior.Builder name​(String 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

        Behavior.Builder metric​(String 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

        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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • criteria

        Behavior.Builder criteria​(BehaviorCriteria 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 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.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • suppressAlerts

        Behavior.Builder suppressAlerts​(Boolean suppressAlerts)

        Suppresses alerts.

        Parameters:
        suppressAlerts - Suppresses alerts.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • exportMetric

        Behavior.Builder exportMetric​(Boolean 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.