PredictiveValue Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.PredictiveValue

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 PredictiveValue class.

Method Summary

Modifier and Type Method and Description
static PredictiveValue fromJson(JsonReader jsonReader)

Reads an instance of PredictiveValue from the JsonReader.

OffsetDateTime timestamp()

Get the timestamp property: the timestamp for the metric value in ISO 8601 format.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

double value()

Get the value property: Predictive value in this time bucket.

PredictiveValue withTimestamp(OffsetDateTime timestamp)

Set the timestamp property: the timestamp for the metric value in ISO 8601 format.

PredictiveValue 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:

jsonReader - The JsonReader being read.

Returns:

An instance of PredictiveValue if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

timestamp

public OffsetDateTime timestamp()

Get the timestamp property: the timestamp for the metric value in ISO 8601 format.

Returns:

the timestamp value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public double value()

Get the value property: Predictive value in this time bucket.

Returns:

the value value.

withTimestamp

public PredictiveValue withTimestamp(OffsetDateTime timestamp)

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.

withValue

public PredictiveValue withValue(double value)

Set the value property: Predictive value in this time bucket.

Parameters:

value - the value value to set.

Returns:

the PredictiveValue object itself.

Applies to