@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BehaviorCriteria extends Object implements Serializable, Cloneable, StructuredPojo
The criteria by which the behavior is determined to be normal.
Constructor and Description |
---|
BehaviorCriteria() |
Modifier and Type | Method and Description |
---|---|
BehaviorCriteria |
clone() |
boolean |
equals(Object obj) |
String |
getComparisonOperator()
The operator that relates the thing measured (
metric ) to the criteria (containing a
value or statisticalThreshold ). |
Integer |
getConsecutiveDatapointsToAlarm()
If a device is in violation of the behavior for the specified number of consecutive datapoints, an alarm occurs.
|
Integer |
getConsecutiveDatapointsToClear()
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.
|
Integer |
getDurationSeconds()
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 ). |
MachineLearningDetectionConfig |
getMlDetectionConfig()
The configuration of an ML Detect
|
StatisticalThreshold |
getStatisticalThreshold()
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.
|
MetricValue |
getValue()
The value to be compared with the
metric . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setComparisonOperator(String comparisonOperator)
The operator that relates the thing measured (
metric ) to the criteria (containing a
value or statisticalThreshold ). |
void |
setConsecutiveDatapointsToAlarm(Integer consecutiveDatapointsToAlarm)
If a device is in violation of the behavior for the specified number of consecutive datapoints, an alarm occurs.
|
void |
setConsecutiveDatapointsToClear(Integer 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.
|
void |
setDurationSeconds(Integer 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 ). |
void |
setMlDetectionConfig(MachineLearningDetectionConfig mlDetectionConfig)
The configuration of an ML Detect
|
void |
setStatisticalThreshold(StatisticalThreshold 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.
|
void |
setValue(MetricValue value)
The value to be compared with the
metric . |
String |
toString()
Returns a string representation of this object.
|
BehaviorCriteria |
withComparisonOperator(ComparisonOperator comparisonOperator)
The operator that relates the thing measured (
metric ) to the criteria (containing a
value or statisticalThreshold ). |
BehaviorCriteria |
withComparisonOperator(String comparisonOperator)
The operator that relates the thing measured (
metric ) to the criteria (containing a
value or statisticalThreshold ). |
BehaviorCriteria |
withConsecutiveDatapointsToAlarm(Integer consecutiveDatapointsToAlarm)
If a device is in violation of the behavior for the specified number of consecutive datapoints, an alarm occurs.
|
BehaviorCriteria |
withConsecutiveDatapointsToClear(Integer 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.
|
BehaviorCriteria |
withDurationSeconds(Integer 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 ). |
BehaviorCriteria |
withMlDetectionConfig(MachineLearningDetectionConfig mlDetectionConfig)
The configuration of an ML Detect
|
BehaviorCriteria |
withStatisticalThreshold(StatisticalThreshold 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.
|
BehaviorCriteria |
withValue(MetricValue value)
The value to be compared with the
metric . |
public void setComparisonOperator(String comparisonOperator)
The operator that relates the thing measured (metric
) to the criteria (containing a
value
or statisticalThreshold
). Valid operators include:
string-list
: in-set
and not-in-set
number-list
: in-set
and not-in-set
ip-address-list
: in-cidr-set
and not-in-cidr-set
number
: less-than
, less-than-equals
, greater-than
, and
greater-than-equals
comparisonOperator
- The operator that relates the thing measured (metric
) to the criteria (containing a
value
or statisticalThreshold
). Valid operators include:
string-list
: in-set
and not-in-set
number-list
: in-set
and not-in-set
ip-address-list
: in-cidr-set
and not-in-cidr-set
number
: less-than
, less-than-equals
, greater-than
, and
greater-than-equals
ComparisonOperator
public String getComparisonOperator()
The operator that relates the thing measured (metric
) to the criteria (containing a
value
or statisticalThreshold
). Valid operators include:
string-list
: in-set
and not-in-set
number-list
: in-set
and not-in-set
ip-address-list
: in-cidr-set
and not-in-cidr-set
number
: less-than
, less-than-equals
, greater-than
, and
greater-than-equals
metric
) to the criteria (containing a
value
or statisticalThreshold
). Valid operators include:
string-list
: in-set
and not-in-set
number-list
: in-set
and not-in-set
ip-address-list
: in-cidr-set
and not-in-cidr-set
number
: less-than
, less-than-equals
, greater-than
,
and greater-than-equals
ComparisonOperator
public BehaviorCriteria withComparisonOperator(String comparisonOperator)
The operator that relates the thing measured (metric
) to the criteria (containing a
value
or statisticalThreshold
). Valid operators include:
string-list
: in-set
and not-in-set
number-list
: in-set
and not-in-set
ip-address-list
: in-cidr-set
and not-in-cidr-set
number
: less-than
, less-than-equals
, greater-than
, and
greater-than-equals
comparisonOperator
- The operator that relates the thing measured (metric
) to the criteria (containing a
value
or statisticalThreshold
). Valid operators include:
string-list
: in-set
and not-in-set
number-list
: in-set
and not-in-set
ip-address-list
: in-cidr-set
and not-in-cidr-set
number
: less-than
, less-than-equals
, greater-than
, and
greater-than-equals
ComparisonOperator
public BehaviorCriteria withComparisonOperator(ComparisonOperator comparisonOperator)
The operator that relates the thing measured (metric
) to the criteria (containing a
value
or statisticalThreshold
). Valid operators include:
string-list
: in-set
and not-in-set
number-list
: in-set
and not-in-set
ip-address-list
: in-cidr-set
and not-in-cidr-set
number
: less-than
, less-than-equals
, greater-than
, and
greater-than-equals
comparisonOperator
- The operator that relates the thing measured (metric
) to the criteria (containing a
value
or statisticalThreshold
). Valid operators include:
string-list
: in-set
and not-in-set
number-list
: in-set
and not-in-set
ip-address-list
: in-cidr-set
and not-in-cidr-set
number
: less-than
, less-than-equals
, greater-than
, and
greater-than-equals
ComparisonOperator
public void setValue(MetricValue value)
The value to be compared with the metric
.
value
- The value to be compared with the metric
.public MetricValue getValue()
The value to be compared with the metric
.
metric
.public BehaviorCriteria withValue(MetricValue value)
The value to be compared with the metric
.
value
- The value to be compared with the metric
.public void setDurationSeconds(Integer 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
). 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.
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
). 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.public Integer getDurationSeconds()
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.
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.public BehaviorCriteria withDurationSeconds(Integer 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
). 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.
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
). 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.public void setConsecutiveDatapointsToAlarm(Integer consecutiveDatapointsToAlarm)
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.
consecutiveDatapointsToAlarm
- 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.public Integer getConsecutiveDatapointsToAlarm()
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.
public BehaviorCriteria withConsecutiveDatapointsToAlarm(Integer consecutiveDatapointsToAlarm)
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.
consecutiveDatapointsToAlarm
- 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.public void setConsecutiveDatapointsToClear(Integer 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. If not specified, the default is 1.
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. If not specified, the default is 1.public Integer getConsecutiveDatapointsToClear()
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.
public BehaviorCriteria withConsecutiveDatapointsToClear(Integer 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. If not specified, the default is 1.
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. If not specified, the default is 1.public void setStatisticalThreshold(StatisticalThreshold 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.
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 StatisticalThreshold getStatisticalThreshold()
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 BehaviorCriteria withStatisticalThreshold(StatisticalThreshold 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.
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 void setMlDetectionConfig(MachineLearningDetectionConfig mlDetectionConfig)
The configuration of an ML Detect
mlDetectionConfig
- The configuration of an ML Detectpublic MachineLearningDetectionConfig getMlDetectionConfig()
The configuration of an ML Detect
public BehaviorCriteria withMlDetectionConfig(MachineLearningDetectionConfig mlDetectionConfig)
The configuration of an ML Detect
mlDetectionConfig
- The configuration of an ML Detectpublic String toString()
toString
in class Object
Object.toString()
public BehaviorCriteria clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.