Usage Class

Definition

The usage data for a usage request.

public final class Usage
Inheritance
java.lang.Object
Usage

Inherited Members

java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructors

Usage()

Methods

currentValue()

Get the currentValue property: Current value for this metric.

limit()

Get the limit property: Maximum value for this metric.

name()

Get the name property: The name information for the metric.

nextResetTime()

Get the nextResetTime property: Next reset time for current quota.

quotaPeriod()

Get the quotaPeriod property: The quota period used to summarize the usage values.

status()

Get the status property: Cognitive Services account quota usage status.

unit()

Get the unit property: The unit of the metric.

validate()

Validates the instance.

withCurrentValue(Double currentValue)

Set the currentValue property: Current value for this metric.

withLimit(Double limit)

Set the limit property: Maximum value for this metric.

withName(MetricName name)

Set the name property: The name information for the metric.

withNextResetTime(String nextResetTime)

Set the nextResetTime property: Next reset time for current quota.

withQuotaPeriod(String quotaPeriod)

Set the quotaPeriod property: The quota period used to summarize the usage values.

withStatus(QuotaUsageStatus status)

Set the status property: Cognitive Services account quota usage status.

withUnit(UnitType unit)

Set the unit property: The unit of the metric.

Applies to