Class UsageMetricInner
java.lang.Object
com.azure.resourcemanager.loganalytics.fluent.models.UsageMetricInner
A metric describing the usage of a resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the currentValue property: The current value of the metric.limit()
Get the limit property: The quota limit for the metric.name()
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.unit()
Get the unit property: The units used for the metric.void
validate()
Validates the instance.withCurrentValue
(Double currentValue) Set the currentValue property: The current value of the metric.Set the limit property: The quota limit for the metric.withName
(MetricName name) Set the name property: The name of the metric.withNextResetTime
(OffsetDateTime nextResetTime) Set the nextResetTime property: The time that the metric's value will reset.withQuotaPeriod
(String quotaPeriod) Set the quotaPeriod property: The quota period that determines the length of time between value resets.Set the unit property: The units used for the metric.
-
Constructor Details
-
UsageMetricInner
public UsageMetricInner()
-
-
Method Details
-
name
Get the name property: The name of the metric.- Returns:
- the name value.
-
withName
Set the name property: The name of the metric.- Parameters:
name
- the name value to set.- Returns:
- the UsageMetricInner object itself.
-
unit
Get the unit property: The units used for the metric.- Returns:
- the unit value.
-
withUnit
Set the unit property: The units used for the metric.- Parameters:
unit
- the unit value to set.- Returns:
- the UsageMetricInner object itself.
-
currentValue
Get the currentValue property: The current value of the metric.- Returns:
- the currentValue value.
-
withCurrentValue
Set the currentValue property: The current value of the metric.- Parameters:
currentValue
- the currentValue value to set.- Returns:
- the UsageMetricInner object itself.
-
limit
Get the limit property: The quota limit for the metric.- Returns:
- the limit value.
-
withLimit
Set the limit property: The quota limit for the metric.- Parameters:
limit
- the limit value to set.- Returns:
- the UsageMetricInner object itself.
-
nextResetTime
Get the nextResetTime property: The time that the metric's value will reset.- Returns:
- the nextResetTime value.
-
withNextResetTime
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
Get the quotaPeriod property: The quota period that determines the length of time between value resets.- Returns:
- the quotaPeriod value.
-
withQuotaPeriod
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.
-