Partilhar via


ComputeUsageUnit Class

public final class ComputeUsageUnit
extends ExpandableStringEnum<ComputeUsageUnit>

Compute usage units.

Field Summary

Modifier and Type Field and Description
static final ComputeUsageUnit BYTES

Static value Bytes for ComputeUsageUnit.

static final ComputeUsageUnit BYTES_PER_SECOND

Static value BytesPerSecond for ComputeUsageUnit.

static final ComputeUsageUnit COUNT

Static value Count for ComputeUsageUnit.

static final ComputeUsageUnit COUNTS_PER_SECOND

Static value CountsPerSecond for ComputeUsageUnit.

static final ComputeUsageUnit PERCENT

Static value Percent for ComputeUsageUnit.

static final ComputeUsageUnit SECONDS

Static value Seconds for ComputeUsageUnit.

Constructor Summary

Constructor Description
ComputeUsageUnit()

Method Summary

Modifier and Type Method and Description
static ComputeUsageUnit fromString(String name)

Creates or finds a compute usage unit based on its name.

Collection<ComputeUsageUnit> values()

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BYTES

public static final ComputeUsageUnit BYTES

Static value Bytes for ComputeUsageUnit.

BYTES_PER_SECOND

public static final ComputeUsageUnit BYTES_PER_SECOND

Static value BytesPerSecond for ComputeUsageUnit.

COUNT

public static final ComputeUsageUnit COUNT

Static value Count for ComputeUsageUnit.

COUNTS_PER_SECOND

public static final ComputeUsageUnit COUNTS_PER_SECOND

Static value CountsPerSecond for ComputeUsageUnit.

PERCENT

public static final ComputeUsageUnit PERCENT

Static value Percent for ComputeUsageUnit.

SECONDS

public static final ComputeUsageUnit SECONDS

Static value Seconds for ComputeUsageUnit.

Constructor Details

ComputeUsageUnit

public ComputeUsageUnit()

Method Details

fromString

public static ComputeUsageUnit fromString(String name)

Creates or finds a compute usage unit based on its name.

Parameters:

name - a name

Returns:

a corresponding ComputeUsageUnit

values

public Collection values()

Returns:

known compute usage units

Applies to