Class PredictiveValue
java.lang.Object
com.azure.resourcemanager.monitor.models.PredictiveValue
Represents a predictive metric value in the given bucket.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the timestamp property: the timestamp for the metric value in ISO 8601 format.voidvalidate()Validates the instance.doublevalue()Get the value property: Predictive value in this time bucket.withTimestamp(OffsetDateTime timestamp) Set the timestamp property: the timestamp for the metric value in ISO 8601 format.withValue(double value) Set the value property: Predictive value in this time bucket.
-
Constructor Details
-
PredictiveValue
public PredictiveValue()Creates an instance of PredictiveValue class.
-
-
Method Details
-
timestamp
Get the timestamp property: the timestamp for the metric value in ISO 8601 format.- Returns:
- the timestamp value.
-
withTimestamp
Set the timestamp property: the timestamp for the metric value in ISO 8601 format.- Parameters:
timestamp- the timestamp value to set.- Returns:
- the PredictiveValue object itself.
-
value
public double value()Get the value property: Predictive value in this time bucket.- Returns:
- the value value.
-
withValue
Set the value property: Predictive value in this time bucket.- Parameters:
value- the value value to set.- Returns:
- the PredictiveValue object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-