QueryMetricUnitType Class

public final class QueryMetricUnitType
extends ExpandableStringEnum<QueryMetricUnitType>

The unit of the metric.

Field Summary

Modifier and Type Field and Description
static final QueryMetricUnitType COUNT

Static value count for QueryMetricUnitType.

static final QueryMetricUnitType KB

Static value KB for QueryMetricUnitType.

static final QueryMetricUnitType MICROSECONDS

Static value microseconds for QueryMetricUnitType.

static final QueryMetricUnitType PERCENTAGE

Static value percentage for QueryMetricUnitType.

Constructor Summary

Constructor Description
QueryMetricUnitType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of QueryMetricUnitType value.

Method Summary

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

Creates or finds a QueryMetricUnitType from its string representation.

static Collection<QueryMetricUnitType> values()

Gets known QueryMetricUnitType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

COUNT

public static final QueryMetricUnitType COUNT

Static value count for QueryMetricUnitType.

KB

public static final QueryMetricUnitType KB

Static value KB for QueryMetricUnitType.

MICROSECONDS

public static final QueryMetricUnitType MICROSECONDS

Static value microseconds for QueryMetricUnitType.

PERCENTAGE

public static final QueryMetricUnitType PERCENTAGE

Static value percentage for QueryMetricUnitType.

Constructor Details

QueryMetricUnitType

@Deprecated
public QueryMetricUnitType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of QueryMetricUnitType value.

Method Details

fromString

public static QueryMetricUnitType fromString(String name)

Creates or finds a QueryMetricUnitType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding QueryMetricUnitType.

values

public static Collection values()

Gets known QueryMetricUnitType values.

Returns:

known QueryMetricUnitType values.

Applies to