Partager via


ComputeUsage Interface

Implements

public interface ComputeUsage
extends HasInnerModel<UsageInner>

An immutable client-side representation of an Azure compute resource usage info object.

Method Summary

Modifier and Type Method and Description
abstract int currentValue()

Gets the current count of the allocated resources in the subscription.

abstract long limit()

Gets the maximum count of the resources that can be allocated in the subscription.

abstract UsageName name()

Gets the name of the type of usage.

abstract ComputeUsageUnit unit()

Gets the unit of measurement.

Method Details

currentValue

public abstract int currentValue()

Gets the current count of the allocated resources in the subscription.

Returns:

the current count of the allocated resources in the subscription

limit

public abstract long limit()

Gets the maximum count of the resources that can be allocated in the subscription.

Returns:

the maximum count of the resources that can be allocated in the subscription

name

public abstract UsageName name()

Gets the name of the type of usage.

Returns:

the name of the type of usage

unit

public abstract ComputeUsageUnit unit()

Gets the unit of measurement.

Returns:

the unit of measurement

Applies to