Skip to content

Commit

Permalink
Hack to handle attributes with types preceded by "class"
Browse files Browse the repository at this point in the history
  • Loading branch information
albertvaka committed Aug 20, 2019
1 parent 9277cf8 commit 3174c81
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/main/java/org/datadog/jmxfetch/Instance.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,18 @@ public class Instance {
"java.lang.Object",
"java.lang.Boolean",
"boolean",
"java.lang.Number");
"java.lang.Number",
//Workaround for jasperserver, which returns attribute types as `class <type>`
"class java.lang.String",
"class java.lang.Double",
"class java.lang.Float",
"class java.lang.Integer",
"class java.lang.Long",
"class java.util.concurrent.atomic.AtomicInteger",
"class java.util.concurrent.atomic.AtomicLong",
"class java.lang.Object",
"class java.lang.Boolean",
"class java.lang.Number");
private static final List<String> COMPOSED_TYPES =
Arrays.asList(
"javax.management.openmbean.CompositeData",
Expand Down

0 comments on commit 3174c81

Please sign in to comment.