Class: AWSCDK::IoT::CfnSecurityProfile::StatisticalThresholdProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnSecurityProfile::StatisticalThresholdProperty
- Defined in:
- io_t/cfn_security_profile.rb
Overview
A statistical ranking (percentile) that indicates a threshold value by which a behavior is determined to be in compliance or in violation of the behavior.
Instance Attribute Summary collapse
-
#statistic ⇒ String?
readonly
The percentile that resolves to a threshold value by which compliance with a behavior is determined.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(statistic: nil) ⇒ StatisticalThresholdProperty
constructor
A new instance of StatisticalThresholdProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(statistic: nil) ⇒ StatisticalThresholdProperty
Returns a new instance of StatisticalThresholdProperty.
1136 1137 1138 1139 |
# File 'io_t/cfn_security_profile.rb', line 1136 def initialize(statistic: nil) @statistic = statistic Jsii::Type.check_type(@statistic, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "statistic") unless @statistic.nil? end |
Instance Attribute Details
#statistic ⇒ String? (readonly)
The percentile that resolves to a threshold value by which compliance with a behavior is determined.
Metrics are collected over the specified period ( duration_seconds ) from all reporting devices in your account and statistical ranks are calculated. Then, the measurements from a device are collected over the same period. If the accumulated measurements from the device fall above or below ( comparison_operator ) the value associated with the percentile specified, then the device is considered to be in compliance with the behavior, otherwise a violation occurs.
1147 1148 1149 |
# File 'io_t/cfn_security_profile.rb', line 1147 def statistic @statistic end |
Class Method Details
.jsii_properties ⇒ Object
1149 1150 1151 1152 1153 |
# File 'io_t/cfn_security_profile.rb', line 1149 def self.jsii_properties { :statistic => "statistic", } end |
Instance Method Details
#to_jsii ⇒ Object
1155 1156 1157 1158 1159 1160 1161 |
# File 'io_t/cfn_security_profile.rb', line 1155 def to_jsii result = {} result.merge!({ "statistic" => @statistic, }) result.compact end |