You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::IoT::Types::Behavior

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb

Overview

Note:

When making an API call, you may pass Behavior data as a hash:

{
  name: "BehaviorName", # required
  metric: "BehaviorMetric",
  criteria: {
    comparison_operator: "less-than", # accepts less-than, less-than-equals, greater-than, greater-than-equals, in-cidr-set, not-in-cidr-set, in-port-set, not-in-port-set
    value: {
      count: 1,
      cidrs: ["Cidr"],
      ports: [1],
    },
    duration_seconds: 1,
    consecutive_datapoints_to_alarm: 1,
    consecutive_datapoints_to_clear: 1,
    statistical_threshold: {
      statistic: "EvaluationStatistic",
    },
  },
}

A Device Defender security profile behavior.

Instance Attribute Summary collapse

Instance Attribute Details

#criteriaTypes::BehaviorCriteria

The criteria that determine if a device is behaving normally in regard to the metric.



1137
1138
1139
1140
1141
1142
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 1137

class Behavior < Struct.new(
  :name,
  :metric,
  :criteria)
  include Aws::Structure
end

#metricString

What is measured by the behavior.

Returns:

  • (String)


1137
1138
1139
1140
1141
1142
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 1137

class Behavior < Struct.new(
  :name,
  :metric,
  :criteria)
  include Aws::Structure
end

#nameString

The name you have given to the behavior.

Returns:

  • (String)


1137
1138
1139
1140
1141
1142
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 1137

class Behavior < Struct.new(
  :name,
  :metric,
  :criteria)
  include Aws::Structure
end