I'm using the v20.5 java agent.
Is there a way to trigger and download a thread dump via the API? I don't see one.
In the UI, we can do something like this:
I would like to automate that.
thanks
Hi @John.Gregg,
I did some searching and found this. It seems API can be used to initiate a thread dump, but not download.
Example
Request
Response
This example creates an action of the type Thread Dump. See Download Examples.
{
"actionType": "THREAD_DUMP",
"name": "Thread Dump Action",
"numberOfThreadDumps": 2,
"intervalInMs": 500,
"approvalBeforeExecution": {
"requireApproval": true,
"approverEmail": "email@website.com"
}
}