public enum MetricCategory extends Enum<MetricCategory>
A metric can be tagged with multiple categories. Clients can enable/disable metric collection
at a MetricCategory level.
| Enum Constant and Description |
|---|
ALL
This is an umbrella category (provided for convenience) that records metrics belonging to every category
defined in this enum.
|
CORE
Metrics collected by the core SDK are classified under this category.
|
CUSTOM
Metrics specified by the customer should be classified under this category.
|
HTTP_CLIENT
Metrics collected at the http client level are classified under this category.
|
| Modifier and Type | Method and Description |
|---|---|
static MetricCategory |
fromString(String value)
Create a
MetricCategory from the given String value. |
String |
getValue() |
static MetricCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetricCategory CORE
public static final MetricCategory HTTP_CLIENT
public static final MetricCategory CUSTOM
public static final MetricCategory ALL
Note: Enabling this option along with MetricLevel.TRACE is verbose and can be expensive based on the platform
the metrics are uploaded to. Please make sure you need all this data before using this category.
public static MetricCategory[] values()
for (MetricCategory c : MetricCategory.values()) System.out.println(c);
public static MetricCategory valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getValue()
public static MetricCategory fromString(String value)
MetricCategory from the given String value. This method is case insensitive.value - the value to create the MetricCategory fromMetricCategory if the given value matches one of the enum values.
Otherwise throws IllegalArgumentExceptionCopyright © 2022. All rights reserved.