@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricResult extends Object implements Serializable, Cloneable, StructuredPojo
An individual metric Forecast calculated when monitoring predictor usage. You can compare the value for this metric to the metric's value in the Baseline to see how your predictor's performance is changing.
For more information about metrics generated by Forecast see Evaluating Predictor Accuracy
Constructor and Description |
---|
MetricResult() |
Modifier and Type | Method and Description |
---|---|
MetricResult |
clone() |
boolean |
equals(Object obj) |
String |
getMetricName()
The name of the metric.
|
Double |
getMetricValue()
The value for the metric.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMetricName(String metricName)
The name of the metric.
|
void |
setMetricValue(Double metricValue)
The value for the metric.
|
String |
toString()
Returns a string representation of this object.
|
MetricResult |
withMetricName(String metricName)
The name of the metric.
|
MetricResult |
withMetricValue(Double metricValue)
The value for the metric.
|
public void setMetricName(String metricName)
The name of the metric.
metricName
- The name of the metric.public String getMetricName()
The name of the metric.
public MetricResult withMetricName(String metricName)
The name of the metric.
metricName
- The name of the metric.public void setMetricValue(Double metricValue)
The value for the metric.
metricValue
- The value for the metric.public Double getMetricValue()
The value for the metric.
public MetricResult withMetricValue(Double metricValue)
The value for the metric.
metricValue
- The value for the metric.public String toString()
toString
in class Object
Object.toString()
public MetricResult clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.