Commit 55426208 authored by Andy Wilkinson's avatar Andy Wilkinson

Provide type information for optional thread dump endpoint response fields

Closes gh-15989
parent 0335a286
...@@ -84,20 +84,21 @@ public class ThreadDumpEndpointDocumentationTests ...@@ -84,20 +84,21 @@ public class ThreadDumpEndpointDocumentationTests
.description( .description(
"Description of the object on which the " "Description of the object on which the "
+ "thread is blocked, if any.") + "thread is blocked, if any.")
.optional(), .optional().type(JsonFieldType.STRING),
fieldWithPath("threads.[].lockInfo").description( fieldWithPath("threads.[].lockInfo")
.description(
"Object for which the thread is blocked " "Object for which the thread is blocked "
+ "waiting.") + "waiting.")
.optional(), .optional().type(JsonFieldType.OBJECT),
fieldWithPath("threads.[].lockInfo.className") fieldWithPath("threads.[].lockInfo.className")
.description( .description(
"Fully qualified class name of the lock" "Fully qualified class name of the lock"
+ " object.") + " object.")
.optional(), .optional().type(JsonFieldType.STRING),
fieldWithPath("threads.[].lockInfo.identityHashCode") fieldWithPath("threads.[].lockInfo.identityHashCode")
.description( .description(
"Identity hash code of the lock object.") "Identity hash code of the lock object.")
.optional(), .optional().type(JsonFieldType.NUMBER),
fieldWithPath("threads.[].lockedMonitors").description( fieldWithPath("threads.[].lockedMonitors").description(
"Monitors locked by this thread, if any"), "Monitors locked by this thread, if any"),
fieldWithPath("threads.[].lockedMonitors.[].className") fieldWithPath("threads.[].lockedMonitors.[].className")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment