Skip to content
v2.278.0

StatisticalThresholdProperty Struct ​

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.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const statisticalThresholdProperty: iot.CfnSecurityProfile.StatisticalThresholdProperty = {
  statistic: 'statistic',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iot as iot

statistical_threshold_property = iot.CfnSecurityProfile.StatisticalThresholdProperty(
    statistic="statistic"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;

StatisticalThresholdProperty statisticalThresholdProperty = StatisticalThresholdProperty.builder()
        .statistic("statistic")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 statisticalThresholdProperty = new StatisticalThresholdProperty {
    Statistic = "statistic"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

statisticalThresholdProperty := &StatisticalThresholdProperty{
	Statistic: jsii.String("statistic"),
}

Properties ​

statisticoptionalstringstatisticoptionalstrstatisticoptionalStringStatisticoptionalstringStatisticoptional*string #
The percentile that resolves to a threshold value by which compliance with a behavior is determined.
notes

Metrics are collected over the specified period ( durationSeconds ) 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 ( comparisonOperator ) the value associated with the percentile specified, then the device is considered to be in compliance with the behavior, otherwise a violation occurs.