Class UsageMetricInner

java.lang.Object
com.azure.resourcemanager.loganalytics.fluent.models.UsageMetricInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<UsageMetricInner>

public final class UsageMetricInner extends Object implements com.azure.json.JsonSerializable<UsageMetricInner>
A metric describing the usage of a resource.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the currentValue property: The current value of the metric.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of UsageMetricInner from the JsonReader.
    Get the limit property: The quota limit for the metric.
    Get the name property: The name of the metric.
    Get the nextResetTime property: The time that the metric's value will reset.
    Get the quotaPeriod property: The quota period that determines the length of time between value resets.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the unit property: The units used for the metric.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • name

      public MetricName name()
      Get the name property: The name of the metric.
      Returns:
      the name value.
    • unit

      public String unit()
      Get the unit property: The units used for the metric.
      Returns:
      the unit value.
    • currentValue

      public Double currentValue()
      Get the currentValue property: The current value of the metric.
      Returns:
      the currentValue value.
    • limit

      public Double limit()
      Get the limit property: The quota limit for the metric.
      Returns:
      the limit value.
    • nextResetTime

      public OffsetDateTime nextResetTime()
      Get the nextResetTime property: The time that the metric's value will reset.
      Returns:
      the nextResetTime value.
    • quotaPeriod

      public String quotaPeriod()
      Get the quotaPeriod property: The quota period that determines the length of time between value resets.
      Returns:
      the quotaPeriod value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<UsageMetricInner>
      Throws:
      IOException
    • fromJson

      public static UsageMetricInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of UsageMetricInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of UsageMetricInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the UsageMetricInner.