UsageMetricInner Class

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

public final class UsageMetricInner

A metric describing the usage of a resource.

Constructor Summary

Constructor Description
UsageMetricInner()

Creates an instance of UsageMetricInner class.

Method Summary

Modifier and Type Method and Description
Double currentValue()

Get the currentValue property: The current value of the metric.

Double limit()

Get the limit property: The quota limit for the metric.

MetricName name()

Get the name property: The name of the metric.

OffsetDateTime nextResetTime()

Get the nextResetTime property: The time that the metric's value will reset.

String quotaPeriod()

Get the quotaPeriod property: The quota period that determines the length of time between value resets.

String unit()

Get the unit property: The units used for the metric.

void validate()

Validates the instance.

UsageMetricInner withCurrentValue(Double currentValue)

Set the currentValue property: The current value of the metric.

UsageMetricInner withLimit(Double limit)

Set the limit property: The quota limit for the metric.

UsageMetricInner withName(MetricName name)

Set the name property: The name of the metric.

UsageMetricInner withNextResetTime(OffsetDateTime nextResetTime)

Set the nextResetTime property: The time that the metric's value will reset.

UsageMetricInner withQuotaPeriod(String quotaPeriod)

Set the quotaPeriod property: The quota period that determines the length of time between value resets.

UsageMetricInner 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:

the currentValue value.

limit

public Double limit()

Get the limit property: The quota limit for the metric.

Returns:

the limit value.

name

public MetricName name()

Get the name property: The name of the metric.

Returns:

the name 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.

unit

public String unit()

Get the unit property: The units used for the metric.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

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.

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.

Applies to