PredictiveValue Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. PredictiveValue
- com.
Implements
public final class PredictiveValue
implements JsonSerializable<PredictiveValue>
Represents a predictive metric value in the given bucket.
Constructor Summary
Constructor | Description |
---|---|
PredictiveValue() |
Creates an instance of Predictive |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Predictive |
fromJson(JsonReader jsonReader)
Reads an instance of Predictive |
Offset |
timestamp()
Get the timestamp property: the timestamp for the metric value in ISO 8601 format. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
double |
value()
Get the value property: Predictive value in this time bucket. |
Predictive |
withTimestamp(OffsetDateTime timestamp)
Set the timestamp property: the timestamp for the metric value in ISO 8601 format. |
Predictive |
withValue(double value)
Set the value property: Predictive value in this time bucket. |
Methods inherited from java.lang.Object
Constructor Details
PredictiveValue
public PredictiveValue()
Creates an instance of PredictiveValue class.
Method Details
fromJson
public static PredictiveValue fromJson(JsonReader jsonReader)
Reads an instance of PredictiveValue from the JsonReader.
Parameters:
Returns:
Throws:
timestamp
public OffsetDateTime timestamp()
Get the timestamp property: the timestamp for the metric value in ISO 8601 format.
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public double value()
Get the value property: Predictive value in this time bucket.
Returns:
withTimestamp
public PredictiveValue withTimestamp(OffsetDateTime timestamp)
Set the timestamp property: the timestamp for the metric value in ISO 8601 format.
Parameters:
Returns:
withValue
public PredictiveValue withValue(double value)
Set the value property: Predictive value in this time bucket.
Parameters:
Returns:
Applies to
Azure SDK for Java