Class: Aws::IoT::Types::BehaviorCriteria
- Inherits:
-
Struct
- Object
- Struct
- Aws::IoT::Types::BehaviorCriteria
- 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
-
#comparison_operator ⇒ String
The operator that relates the thing measured (‘metric`) to the criteria (`value`).
-
#duration_seconds ⇒ Integer
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`).
-
#value ⇒ Types::MetricValue
The value to be compared with the ‘metric`.
Instance Attribute Details
#comparison_operator ⇒ String
The operator that relates the thing measured (‘metric`) to the criteria (`value`).
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_seconds ⇒ Integer
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`).
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 |
#value ⇒ Types::MetricValue
The value to be compared with the ‘metric`.
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 |