Class CfnSecurityProfile.BehaviorCriteriaProperty
The criteria by which the behavior is determined to be normal.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.IoT
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BehaviorCriteriaProperty : Object, CfnSecurityProfile.IBehaviorCriteriaProperty
Syntax (vb)
Public Class BehaviorCriteriaProperty
Inherits Object
Implements CfnSecurityProfile.IBehaviorCriteriaProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;
var behaviorCriteriaProperty = new BehaviorCriteriaProperty {
ComparisonOperator = "comparisonOperator",
ConsecutiveDatapointsToAlarm = 123,
ConsecutiveDatapointsToClear = 123,
DurationSeconds = 123,
MlDetectionConfig = new MachineLearningDetectionConfigProperty {
ConfidenceLevel = "confidenceLevel"
},
StatisticalThreshold = new StatisticalThresholdProperty {
Statistic = "statistic"
},
Value = new MetricValueProperty {
Cidrs = new [] { "cidrs" },
Count = "count",
Number = 123,
Numbers = new [] { 123 },
Ports = new [] { 123 },
Strings = new [] { "strings" }
}
};
Synopsis
Constructors
Behavior |
Properties
Comparison |
The operator that relates the thing measured ( |
Consecutive |
If a device is in violation of the behavior for the specified number of consecutive datapoints, an alarm occurs. |
Consecutive |
If an alarm has occurred and the offending device is no longer in violation of the behavior for the specified number of consecutive datapoints, the alarm is cleared. |
Duration |
Use this to specify the time duration over which the behavior is evaluated, for those criteria that have a time dimension (for example, |
Ml |
The confidence level of the detection model. |
Statistical |
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. |
Value | The value to be compared with the |
Constructors
BehaviorCriteriaProperty()
public BehaviorCriteriaProperty()
Properties
ComparisonOperator
The operator that relates the thing measured ( metric
) to the criteria (containing a value
or statisticalThreshold
).
public string ComparisonOperator { get; set; }
Property Value
System.
Remarks
ConsecutiveDatapointsToAlarm
If a device is in violation of the behavior for the specified number of consecutive datapoints, an alarm occurs.
public Nullable<double> ConsecutiveDatapointsToAlarm { get; set; }
Property Value
System.
Remarks
ConsecutiveDatapointsToClear
If an alarm has occurred and the offending device is no longer in violation of the behavior for the specified number of consecutive datapoints, the alarm is cleared.
public Nullable<double> ConsecutiveDatapointsToClear { get; set; }
Property Value
System.
Remarks
DurationSeconds
Use this to specify the time duration over which the behavior is evaluated, for those criteria that have a time dimension (for example, NUM_MESSAGES_SENT
).
public Nullable<double> DurationSeconds { get; set; }
Property Value
System.
Remarks
For a statisticalThreshhold
metric comparison, measurements from all devices are accumulated over this time duration before being used to calculate percentiles, and later, measurements from an individual device are also accumulated over this time duration before being given a percentile rank. Cannot be used with list-based metric datatypes.
MlDetectionConfig
The confidence level of the detection model.
public object MlDetectionConfig { get; set; }
Property Value
System.
Remarks
StatisticalThreshold
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.
public object StatisticalThreshold { get; set; }
Property Value
System.
Remarks
Value
The value to be compared with the metric
.
public object Value { get; set; }
Property Value
System.