| Modifier and Type | Field and Description |
|---|---|
AggregationType |
aggregationType
Aggregation type option, as expected by Pyroscope's HTTP API.
|
java.lang.String |
id
Event type id, as defined in one.profiler.Events.
|
Units |
units
Unit option, as expected by Pyroscope's HTTP API.
|
| Modifier and Type | Method and Description |
|---|---|
static EventType |
fromId(java.lang.String id) |
static EventType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventType CPU
public static final EventType ALLOC
public static final EventType LOCK
public static final EventType WALL
public static final EventType ITIMER
public final java.lang.String id
public final Units units
public final AggregationType aggregationType
public static EventType[] values()
for (EventType c : EventType.values()) System.out.println(c);
public static EventType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static EventType fromId(java.lang.String id) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException