AWSIoTBehavior

Objective-C

@interface AWSIoTBehavior

Swift

class AWSIoTBehavior

A Device Defender security profile behavior.

Required parameters: [name]

  • 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.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSIoTBehaviorCriteria *_Nullable criteria;

    Swift

    var criteria: AWSIoTBehaviorCriteria? { get set }
  • Value indicates exporting metrics related to the behavior when it is true.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable exportMetric;

    Swift

    var exportMetric: NSNumber? { get set }
  • What is measured by the behavior.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable metric;

    Swift

    var metric: String? { get set }
  • 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.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSIoTMetricDimension *_Nullable metricDimension;

    Swift

    var metricDimension: AWSIoTMetricDimension? { get set }
  • The name you’ve given to the behavior.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable name;

    Swift

    var name: String? { get set }
  • Suppresses alerts.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable suppressAlerts;

    Swift

    var suppressAlerts: NSNumber? { get set }