[PATCH] JMC-6052 : JSon rule result does not contain Rule ID
Marcus Hirt
marcus.hirt at oracle.com
Wed Jun 27 07:55:08 UTC 2018
Hi Miro,
Looks fine. I can sponsor this one. Let's wait for your updated OCA (since you changed last name) to come through before bringing it in.
/M
On 2018-06-26, 22:09, "jmc-dev on behalf of Miro Wengner" <jmc-dev-bounces at openjdk.java.net on behalf of miro.wengner at gmail.com> wrote:
Hi All,
I’ve fixed the bug JMC-6052.
and here is the diff.
Kind Regards,
Miro
PATCH:
diff --git a/core/org.openjdk.jmc.flightrecorder.rules/src/main/resources/org/openjdk/jmc/flightrecorder/rules/report/json.xslt b/core/org.openjdk.jmc.flightrecorder.rules/src/main/resources/org/openjdk/jmc/flightrecorder/rules/report/json.xslt
--- a/core/org.openjdk.jmc.flightrecorder.rules/src/main/resources/org/openjdk/jmc/flightrecorder/rules/report/json.xslt
+++ b/core/org.openjdk.jmc.flightrecorder.rules/src/main/resources/org/openjdk/jmc/flightrecorder/rules/report/json.xslt
@@ -132,6 +132,7 @@
<xsl:template match="rule">
{
+ "id": "<xsl:apply-templates select="id" />",
"name": "<xsl:apply-templates select="name" />", <xsl:choose><xsl:when test="count(error)>0"><xsl:text>
 </xsl:text>"error": "<xsl:apply-templates select="error" />"</xsl:when><xsl:otherwise>
"severity": "<xsl:apply-templates select="severity" />",
"score": <xsl:apply-templates select="score" />,
More information about the jmc-dev
mailing list