Description

Enable the ABL profiler for a multi-session agent and also configure the diagnostic endpoint for pushing profiler data to the diagnostic store, such as another PASOE instance.

HTTP Operation

POST

URI

//host_name:port/oemanager/applications/ABL_app_name/agents/agentPID/pushProfilerData
Note: Agent PID (for example, 4516) or agent ID (for example, jVkItvsRTTqGpZcp6ddpkQ) can be used to identify the multi-session agent. Both values can be obtained using the List agents API.

Media type

application/vnd.progress+json

Response codes

200 Success
500 Unexpected Server Error

Command-line example

curl -X POST -u  username:password -v http://localhost:16680/oemanager/applications/oepas1/agents/4516/pushProfilerData?
url=http%3A%2F%2Flocalhost%3A8850%2Foediagstore%2Fweb%2Fdiag&requestCount=10' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
"bufsize": 0,
  "TestRunDescriptor": "TestRun",
  "Statistics": false,
  "Proclist": null,
  "Coverage": false,
  "AdapterMask": null,
  "RequestHiBound": -1,
  "RequestLoBound": 0
}'

ABL HTTP client example

define variable resp as OpenEdge.Net.HTTP.IHttpResponse.

resp = OpenEdge.Net.HTTP.ClientBuilder:Build():Client
:Execute(OpenEdge.Net.HTTP.RequestBuilder
:Post('http://localhost:16680/oemanager/applications/
oepas1/agents/4516/pushProfilerData/pushProfilerData?
url=http%3A%2F%2Flocalhost%3A8850%2Foediagstore%2Fweb%2Fdiag&requestCount=10')
      :UsingCredentials(new OpenEdge.Net.HTTP.Credentials('', 'username', 'password'))
      :Request
   ).

Request body example

{
  "bufsize": 0,
  "TestRunDescriptor": "TestRun",
  "Statistics": false,
  "Proclist": null,
  "Coverage": false,
  "AdapterMask": null,
  "RequestHiBound": -1,
  "RequestLoBound": 0
  }

Response body example


  {
 "operation": "PUSH PROFILER DATA",
  "outcome": "SUCCESS",
  "result": {
    "ABLReturnVal": true,
    "agentId": "jVkItvsRTTqGpZcp6ddpkQ",
    "pid": "4516"
  },
  "errmsg": "",
  "versionStr": "v12.2.12 ( 2023-04-20 )",
  "versionNo": 1
}