Skip to content

Commit

Permalink
Merge pull request #243 from DataDog/albertvaka/hack-jasperserver
Browse files Browse the repository at this point in the history
Hack to handle attributes with types preceded by "class"
  • Loading branch information
albertvaka authored Aug 21, 2019
2 parents 9277cf8 + 3174c81 commit 033eb0e
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 033eb0e

Please sign in to comment.