UsageMetricInner Class
- java.
lang. Object - com.
azure. resourcemanager. loganalytics. fluent. models. UsageMetricInner
- com.
public final class UsageMetricInner
A metric describing the usage of a resource.
Constructor Summary
Constructor | Description |
---|---|
UsageMetricInner() |
Creates an instance of Usage |
Method Summary
Modifier and Type | Method and Description |
---|---|
Double |
currentValue()
Get the current |
Double |
limit()
Get the limit property: The quota limit for the metric. |
Metric |
name()
Get the name property: The name of the metric. |
Offset |
nextResetTime()
Get the next |
String |
quotaPeriod()
Get the quota |
String |
unit()
Get the unit property: The units used for the metric. |
void |
validate()
Validates the instance. |
Usage |
withCurrentValue(Double currentValue)
Set the current |
Usage |
withLimit(Double limit)
Set the limit property: The quota limit for the metric. |
Usage |
withName(MetricName name)
Set the name property: The name of the metric. |
Usage |
withNextResetTime(OffsetDateTime nextResetTime)
Set the next |
Usage |
withQuotaPeriod(String quotaPeriod)
Set the quota |
Usage |
withUnit(String unit)
Set the unit property: The units used for the metric. |
Methods inherited from java.lang.Object
Constructor Details
UsageMetricInner
public UsageMetricInner()
Creates an instance of UsageMetricInner class.
Method Details
currentValue
public Double currentValue()
Get the currentValue property: The current value of the metric.
Returns:
limit
public Double limit()
Get the limit property: The quota limit for the metric.
Returns:
name
public MetricName name()
Get the name property: The name of the metric.
Returns:
nextResetTime
public OffsetDateTime nextResetTime()
Get the nextResetTime property: The time that the metric's value will reset.
Returns:
quotaPeriod
public String quotaPeriod()
Get the quotaPeriod property: The quota period that determines the length of time between value resets.
Returns:
unit
public String unit()
Get the unit property: The units used for the metric.
Returns:
validate
public void validate()
Validates the instance.
withCurrentValue
public UsageMetricInner withCurrentValue(Double currentValue)
Set the currentValue property: The current value of the metric.
Parameters:
Returns:
withLimit
public UsageMetricInner withLimit(Double limit)
Set the limit property: The quota limit for the metric.
Parameters:
Returns:
withName
public UsageMetricInner withName(MetricName name)
Set the name property: The name of the metric.
Parameters:
Returns:
withNextResetTime
public UsageMetricInner withNextResetTime(OffsetDateTime nextResetTime)
Set the nextResetTime property: The time that the metric's value will reset.
Parameters:
Returns:
withQuotaPeriod
public UsageMetricInner withQuotaPeriod(String quotaPeriod)
Set the quotaPeriod property: The quota period that determines the length of time between value resets.
Parameters:
Returns:
withUnit
public UsageMetricInner withUnit(String unit)
Set the unit property: The units used for the metric.
Parameters:
Returns:
Applies to
Azure SDK for Java