Class PredictiveValue

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

public final class PredictiveValue extends Object
Represents a predictive metric value in the given bucket.
  • Constructor Details

    • PredictiveValue

      public PredictiveValue()
      Creates an instance of PredictiveValue class.
  • Method Details

    • timestamp

      public OffsetDateTime timestamp()
      Get the timestamp property: the timestamp for the metric value in ISO 8601 format.
      Returns:
      the timestamp 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.
    • value

      public double value()
      Get the value property: Predictive value in this time bucket.
      Returns:
      the value value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.