/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.iot.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

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

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BehaviorCriteria implements Serializable, Cloneable, StructuredPojo { /** *

* The operator that relates the thing measured (metric) to the criteria (containing a * value or statisticalThreshold). Valid operators include: *

* */ private String comparisonOperator; /** *

* The value to be compared with the metric. *

*/ private MetricValue value; /** *

* 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). 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. *

*/ private Integer durationSeconds; /** *

* If a device is in violation of the behavior for the specified number of consecutive datapoints, an alarm occurs. * If not specified, the default is 1. *

*/ private Integer consecutiveDatapointsToAlarm; /** *

* 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. If not specified, the default is 1. *

*/ private Integer consecutiveDatapointsToClear; /** *

* 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. *

*/ private StatisticalThreshold statisticalThreshold; /** *

* The configuration of an ML Detect *

*/ private MachineLearningDetectionConfig mlDetectionConfig; /** *

* The operator that relates the thing measured (metric) to the criteria (containing a * value or statisticalThreshold). Valid operators include: *

* * * @param comparisonOperator * The operator that relates the thing measured (metric) to the criteria (containing a * value or statisticalThreshold). Valid operators include:

*