public enum MetricLevel extends Enum<MetricLevel>
MetricLevel associated with a SdkMetric, similar to log levels, defines the 'scenario' in which the metric
is useful. This makes it easy to reduce the cost of metric publishing (e.g. by setting it to INFO), and then increase
it when additional data level is needed for debugging purposes (e.g. by setting it to TRACE.| Enum Constant and Description |
|---|
ERROR
Includes metrics that report when API call errors are occurring within the SDK.
|
INFO
The "default" metric level that includes metrics that are useful for identifying why errors or performance issues
are occurring within the SDK.
|
TRACE
The metric level that includes every other metric level, as well as some highly-technical metrics that may only be useful
in very specific performance or failure scenarios.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
includesLevel(MetricLevel level) |
static MetricLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetricLevel TRACE
public static final MetricLevel INFO
public static final MetricLevel ERROR
public static MetricLevel[] values()
for (MetricLevel c : MetricLevel.values()) System.out.println(c);
public static MetricLevel 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 boolean includesLevel(MetricLevel level)
Copyright © 2021. All rights reserved.