Skip to content

Commit

Permalink
chore(jmc-agent): fix probe-template parameter serialization (#243)
Browse files Browse the repository at this point in the history
Signed-off-by: Max Cao <macao@redhat.com>
(cherry picked from commit 2591836)
  • Loading branch information
maxcao13 authored and mergify[bot] committed Jun 22, 2023
1 parent 1cb41eb commit d134a11
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions src/main/java/io/cryostat/core/agent/CapturedValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,28 @@ public class CapturedValue {
private String converter;

enum ContentType {
NONE,
BYTES,
TIMESTAMP,
MILLIS,
NANOS,
TICKS,
ADDRESS,
OS_THREAD,
JAVA_THREAD,
STACK_TRACE,
CLASS,
PERCENTAGE
NONE("None"),
BYTES("Bytes"),
TIMESTAMP("Timestamp"),
MILLIS("Millis"),
NANOS("Nanos"),
TICKS("Ticks"),
ADDRESS("Address"),
OS_THREAD("OSThread"),
JAVA_THREAD("JavaThread"),
STACK_TRACE("StackTrace"),
CLASS("Class"),
PERCENTAGE("Percentage");

private final String contentType;

ContentType(String contentType) {
this.contentType = contentType;
}

public String toString() {
return contentType;
}
}

CapturedValue() {
Expand Down

0 comments on commit d134a11

Please sign in to comment.