public class BehaviorCriteria
extends java.lang.Object
implements java.io.Serializable
The criteria by which the behavior is determined to be normal.
Constructor and Description |
---|
BehaviorCriteria() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getComparisonOperator()
The operator that relates the thing measured (
metric ) to the
criteria (containing a value or
statisticalThreshold ). |
java.lang.Integer |
getConsecutiveDatapointsToAlarm()
If a device is in violation of the behavior for the specified number of
consecutive datapoints, an alarm occurs.
|
java.lang.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.
|
java.lang.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 |
setComparisonOperator(ComparisonOperator comparisonOperator)
The operator that relates the thing measured (
metric ) to the
criteria (containing a value or
statisticalThreshold ). |
void |
setComparisonOperator(java.lang.String comparisonOperator)
The operator that relates the thing measured (
metric ) to the
criteria (containing a value or
statisticalThreshold ). |
void |
setConsecutiveDatapointsToAlarm(java.lang.Integer consecutiveDatapointsToAlarm)
If a device is in violation of the behavior for the specified number of
consecutive datapoints, an alarm occurs.
|
void |
setConsecutiveDatapointsToClear(java.lang.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(java.lang.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 . |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BehaviorCriteria |
withComparisonOperator(ComparisonOperator comparisonOperator)
The operator that relates the thing measured (
metric ) to the
criteria (containing a value or
statisticalThreshold ). |
BehaviorCriteria |
withComparisonOperator(java.lang.String comparisonOperator)
The operator that relates the thing measured (
metric ) to the
criteria (containing a value or
statisticalThreshold ). |
BehaviorCriteria |
withConsecutiveDatapointsToAlarm(java.lang.Integer consecutiveDatapointsToAlarm)
If a device is in violation of the behavior for the specified number of
consecutive datapoints, an alarm occurs.
|
BehaviorCriteria |
withConsecutiveDatapointsToClear(java.lang.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(java.lang.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 java.lang.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
Constraints:
Allowed Values: less-than, less-than-equals, greater-than,
greater-than-equals, in-cidr-set, not-in-cidr-set, in-port-set,
not-in-port-set, in-set, not-in-set
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 setComparisonOperator(java.lang.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
Constraints:
Allowed Values: less-than, less-than-equals, greater-than,
greater-than-equals, in-cidr-set, not-in-cidr-set, in-port-set,
not-in-port-set, in-set, not-in-set
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(java.lang.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
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: less-than, less-than-equals, greater-than,
greater-than-equals, in-cidr-set, not-in-cidr-set, in-port-set,
not-in-port-set, in-set, not-in-set
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 setComparisonOperator(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
Constraints:
Allowed Values: less-than, less-than-equals, greater-than,
greater-than-equals, in-cidr-set, not-in-cidr-set, in-port-set,
not-in-port-set, in-set, not-in-set
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
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: less-than, less-than-equals, greater-than,
greater-than-equals, in-cidr-set, not-in-cidr-set, in-port-set,
not-in-port-set, in-set, not-in-set
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 MetricValue getValue()
The value to be compared with the metric
.
The value to be compared with the metric
.
public void setValue(MetricValue value)
The value to be compared with the metric
.
value
-
The value to be compared with the metric
.
public BehaviorCriteria withValue(MetricValue value)
The value to be compared with the metric
.
Returns a reference to this object so that method calls can be chained together.
value
-
The value to be compared with the metric
.
public java.lang.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.
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 setDurationSeconds(java.lang.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 BehaviorCriteria withDurationSeconds(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
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 java.lang.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.
Constraints:
Range: 1 - 10
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 setConsecutiveDatapointsToAlarm(java.lang.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.
Constraints:
Range: 1 - 10
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 BehaviorCriteria withConsecutiveDatapointsToAlarm(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 10
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 java.lang.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.
Constraints:
Range: 1 - 10
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 setConsecutiveDatapointsToClear(java.lang.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.
Constraints:
Range: 1 - 10
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 BehaviorCriteria withConsecutiveDatapointsToClear(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 10
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 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.
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 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 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.
Returns a reference to this object so that method calls can be chained together.
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 MachineLearningDetectionConfig getMlDetectionConfig()
The configuration of an ML Detect
The configuration of an ML Detect
public void setMlDetectionConfig(MachineLearningDetectionConfig mlDetectionConfig)
The configuration of an ML Detect
mlDetectionConfig
- The configuration of an ML Detect
public BehaviorCriteria withMlDetectionConfig(MachineLearningDetectionConfig mlDetectionConfig)
The configuration of an ML Detect
Returns a reference to this object so that method calls can be chained together.
mlDetectionConfig
- The configuration of an ML Detect
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.