java.lang.Object
com.azure.resourcemanager.loganalytics.fluent.models.UsageMetricInner

public final class UsageMetricInner extends Object
A metric describing the usage of a resource.
  • Constructor Details

    • UsageMetricInner

      public UsageMetricInner()
  • Method Details

    • name

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

      public UsageMetricInner withName(MetricName name)
      Set the name property: The name of the metric.
      Parameters:
      name - the name value to set.
      Returns:
      the UsageMetricInner object itself.
    • unit

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

      public UsageMetricInner withUnit(String unit)
      Set the unit property: The units used for the metric.
      Parameters:
      unit - the unit value to set.
      Returns:
      the UsageMetricInner object itself.
    • currentValue

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

      public UsageMetricInner withCurrentValue(Double currentValue)
      Set the currentValue property: The current value of the metric.
      Parameters:
      currentValue - the currentValue value to set.
      Returns:
      the UsageMetricInner object itself.
    • limit

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

      public UsageMetricInner withLimit(Double limit)
      Set the limit property: The quota limit for the metric.
      Parameters:
      limit - the limit value to set.
      Returns:
      the UsageMetricInner object itself.
    • nextResetTime

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

      public UsageMetricInner withNextResetTime(OffsetDateTime nextResetTime)
      Set the nextResetTime property: The time that the metric's value will reset.
      Parameters:
      nextResetTime - the nextResetTime value to set.
      Returns:
      the UsageMetricInner object itself.
    • quotaPeriod

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

      public UsageMetricInner withQuotaPeriod(String quotaPeriod)
      Set the quotaPeriod property: The quota period that determines the length of time between value resets.
      Parameters:
      quotaPeriod - the quotaPeriod value to set.
      Returns:
      the UsageMetricInner object itself.
    • validate

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