MetricType Class

public final class MetricType
extends ExpandableStringEnum<MetricType>

Defines values for MetricType.

Field Summary

Modifier and Type Field and Description
static final MetricType CPU

cpu.

static final MetricType DTU

dtu.

static final MetricType DURATION

duration.

static final MetricType IO

io.

static final MetricType LOG_IO

logIo.

Constructor Summary

Constructor Description
MetricType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of MetricType value.

Method Summary

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

Creates or finds a MetricType from its string representation.

static Collection<MetricType> values()

Gets known MetricType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

CPU

public static final MetricType CPU

cpu.

DTU

public static final MetricType DTU

dtu.

DURATION

public static final MetricType DURATION

duration.

IO

public static final MetricType IO

io.

LOG_IO

public static final MetricType LOG_IO

logIo.

Constructor Details

MetricType

@Deprecated
public MetricType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of MetricType value.

Method Details

fromString

public static MetricType fromString(String name)

Creates or finds a MetricType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding MetricType.

values

public static Collection<MetricType> values()

Gets known MetricType values.

Returns:

known MetricType values.

Applies to