public class MetricValue extends Object implements Serializable
The value to be compared with the metric
.
Constructor and Description |
---|
MetricValue() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<String> |
getCidrs()
If the
comparisonOperator calls for a set of CIDRs, use this
to specify that set to be compared with the metric . |
Long |
getCount()
If the
comparisonOperator calls for a numeric value, use
this to specify that numeric value to be compared with the
metric . |
List<Integer> |
getPorts()
If the
comparisonOperator calls for a set of ports, use this
to specify that set to be compared with the metric . |
int |
hashCode() |
void |
setCidrs(Collection<String> cidrs)
If the
comparisonOperator calls for a set of CIDRs, use this
to specify that set to be compared with the metric . |
void |
setCount(Long count)
If the
comparisonOperator calls for a numeric value, use
this to specify that numeric value to be compared with the
metric . |
void |
setPorts(Collection<Integer> ports)
If the
comparisonOperator calls for a set of ports, use this
to specify that set to be compared with the metric . |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MetricValue |
withCidrs(Collection<String> cidrs)
If the
comparisonOperator calls for a set of CIDRs, use this
to specify that set to be compared with the metric . |
MetricValue |
withCidrs(String... cidrs)
If the
comparisonOperator calls for a set of CIDRs, use this
to specify that set to be compared with the metric . |
MetricValue |
withCount(Long count)
If the
comparisonOperator calls for a numeric value, use
this to specify that numeric value to be compared with the
metric . |
MetricValue |
withPorts(Collection<Integer> ports)
If the
comparisonOperator calls for a set of ports, use this
to specify that set to be compared with the metric . |
MetricValue |
withPorts(Integer... ports)
If the
comparisonOperator calls for a set of ports, use this
to specify that set to be compared with the metric . |
public Long getCount()
If the comparisonOperator
calls for a numeric value, use
this to specify that numeric value to be compared with the
metric
.
Constraints:
Range: 0 -
If the comparisonOperator
calls for a numeric value,
use this to specify that numeric value to be compared with the
metric
.
public void setCount(Long count)
If the comparisonOperator
calls for a numeric value, use
this to specify that numeric value to be compared with the
metric
.
Constraints:
Range: 0 -
count
-
If the comparisonOperator
calls for a numeric
value, use this to specify that numeric value to be compared
with the metric
.
public MetricValue withCount(Long count)
If the comparisonOperator
calls for a numeric value, use
this to specify that numeric value to be compared with the
metric
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
count
-
If the comparisonOperator
calls for a numeric
value, use this to specify that numeric value to be compared
with the metric
.
public List<String> getCidrs()
If the comparisonOperator
calls for a set of CIDRs, use this
to specify that set to be compared with the metric
.
If the comparisonOperator
calls for a set of CIDRs,
use this to specify that set to be compared with the
metric
.
public void setCidrs(Collection<String> cidrs)
If the comparisonOperator
calls for a set of CIDRs, use this
to specify that set to be compared with the metric
.
cidrs
-
If the comparisonOperator
calls for a set of
CIDRs, use this to specify that set to be compared with the
metric
.
public MetricValue withCidrs(String... cidrs)
If the comparisonOperator
calls for a set of CIDRs, use this
to specify that set to be compared with the metric
.
Returns a reference to this object so that method calls can be chained together.
cidrs
-
If the comparisonOperator
calls for a set of
CIDRs, use this to specify that set to be compared with the
metric
.
public MetricValue withCidrs(Collection<String> cidrs)
If the comparisonOperator
calls for a set of CIDRs, use this
to specify that set to be compared with the metric
.
Returns a reference to this object so that method calls can be chained together.
cidrs
-
If the comparisonOperator
calls for a set of
CIDRs, use this to specify that set to be compared with the
metric
.
public List<Integer> getPorts()
If the comparisonOperator
calls for a set of ports, use this
to specify that set to be compared with the metric
.
If the comparisonOperator
calls for a set of ports,
use this to specify that set to be compared with the
metric
.
public void setPorts(Collection<Integer> ports)
If the comparisonOperator
calls for a set of ports, use this
to specify that set to be compared with the metric
.
ports
-
If the comparisonOperator
calls for a set of
ports, use this to specify that set to be compared with the
metric
.
public MetricValue withPorts(Integer... ports)
If the comparisonOperator
calls for a set of ports, use this
to specify that set to be compared with the metric
.
Returns a reference to this object so that method calls can be chained together.
ports
-
If the comparisonOperator
calls for a set of
ports, use this to specify that set to be compared with the
metric
.
public MetricValue withPorts(Collection<Integer> ports)
If the comparisonOperator
calls for a set of ports, use this
to specify that set to be compared with the metric
.
Returns a reference to this object so that method calls can be chained together.
ports
-
If the comparisonOperator
calls for a set of
ports, use this to specify that set to be compared with the
metric
.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2019. All rights reserved.