public class BehaviorCriteria extends Object implements Serializable
The criteria by which the behavior is determined to be normal.
| Constructor and Description |
|---|
BehaviorCriteria() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getComparisonOperator()
The operator that relates the thing measured (
metric) to the
criteria (value). |
Integer |
getDurationSeconds()
Use this to specify the period of time over which the behavior is
evaluated, for those criteria which have a time dimension (for example,
NUM_MESSAGES_SENT). |
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 (value). |
void |
setComparisonOperator(String comparisonOperator)
The operator that relates the thing measured (
metric) to the
criteria (value). |
void |
setDurationSeconds(Integer durationSeconds)
Use this to specify the period of time over which the behavior is
evaluated, for those criteria which have a time dimension (for example,
NUM_MESSAGES_SENT). |
void |
setValue(MetricValue value)
The value to be compared with the
metric. |
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 (value). |
BehaviorCriteria |
withComparisonOperator(String comparisonOperator)
The operator that relates the thing measured (
metric) to the
criteria (value). |
BehaviorCriteria |
withDurationSeconds(Integer durationSeconds)
Use this to specify the period of time over which the behavior is
evaluated, for those criteria which have a time dimension (for example,
NUM_MESSAGES_SENT). |
BehaviorCriteria |
withValue(MetricValue value)
The value to be compared with the
metric. |
public String getComparisonOperator()
The operator that relates the thing measured (metric) to the
criteria (value).
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
The operator that relates the thing measured (metric
) to the criteria (value).
ComparisonOperatorpublic void setComparisonOperator(String comparisonOperator)
The operator that relates the thing measured (metric) to the
criteria (value).
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
comparisonOperator -
The operator that relates the thing measured (
metric) to the criteria (value).
ComparisonOperatorpublic BehaviorCriteria withComparisonOperator(String comparisonOperator)
The operator that relates the thing measured (metric) to the
criteria (value).
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
comparisonOperator -
The operator that relates the thing measured (
metric) to the criteria (value).
ComparisonOperatorpublic void setComparisonOperator(ComparisonOperator comparisonOperator)
The operator that relates the thing measured (metric) to the
criteria (value).
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
comparisonOperator -
The operator that relates the thing measured (
metric) to the criteria (value).
ComparisonOperatorpublic BehaviorCriteria withComparisonOperator(ComparisonOperator comparisonOperator)
The operator that relates the thing measured (metric) to the
criteria (value).
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
comparisonOperator -
The operator that relates the thing measured (
metric) to the criteria (value).
ComparisonOperatorpublic 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 Integer getDurationSeconds()
Use this to specify the period of time over which the behavior is
evaluated, for those criteria which have a time dimension (for example,
NUM_MESSAGES_SENT).
Use this to specify the period of time over which the behavior is
evaluated, for those criteria which have a time dimension (for
example, NUM_MESSAGES_SENT).
public void setDurationSeconds(Integer durationSeconds)
Use this to specify the period of time over which the behavior is
evaluated, for those criteria which have a time dimension (for example,
NUM_MESSAGES_SENT).
durationSeconds -
Use this to specify the period of time over which the behavior
is evaluated, for those criteria which have a time dimension
(for example, NUM_MESSAGES_SENT).
public BehaviorCriteria withDurationSeconds(Integer durationSeconds)
Use this to specify the period of time over which the behavior is
evaluated, for those criteria which have a time dimension (for example,
NUM_MESSAGES_SENT).
Returns a reference to this object so that method calls can be chained together.
durationSeconds -
Use this to specify the period of time over which the behavior
is evaluated, for those criteria which have a time dimension
(for example, NUM_MESSAGES_SENT).
public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.