Class: Aws::IoT::Types::BehaviorCriteria

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

Overview

Note:

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

{
  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,
}

The criteria by which the behavior is determined to be normal.

Instance Attribute Summary collapse

Instance Attribute Details

#comparison_operatorString

The operator that relates the thing measured (‘metric`) to the criteria (`value`).

Returns:

  • (String)


1014
1015
1016
1017
1018
1019
# File 'lib/aws-sdk-iot/types.rb', line 1014

class BehaviorCriteria < Struct.new(
  :comparison_operator,
  :value,
  :duration_seconds)
  include Aws::Structure
end

#duration_secondsInteger

Use this to specify the period of time over which the behavior is evaluated, for those criteria which have a time dimension (for example, ‘NUM_MESSAGES_SENT`).

Returns:

  • (Integer)


1014
1015
1016
1017
1018
1019
# File 'lib/aws-sdk-iot/types.rb', line 1014

class BehaviorCriteria < Struct.new(
  :comparison_operator,
  :value,
  :duration_seconds)
  include Aws::Structure
end

#valueTypes::MetricValue

The value to be compared with the ‘metric`.

Returns:



1014
1015
1016
1017
1018
1019
# File 'lib/aws-sdk-iot/types.rb', line 1014

class BehaviorCriteria < Struct.new(
  :comparison_operator,
  :value,
  :duration_seconds)
  include Aws::Structure
end