Description

Returns the corresponding agent statistics when you provide one of the following component names:
  • metrics—Returns MS-Agent metrics, which also incluses overhead memory.
  • status—Returns a count of all threads, sessions, requests, connections associated with the MS-Agent thus far.
  • requests|connections|threads—Returns the metrics (such as count, data, or both) of the selected component.

HTTP Operation

GET

URI

//host_name:port/oemanager/applications/ABL_app_name/agents/agentPID/[metrics|status|requests|connections|threads]

Media type

application/vnd.progress+json 

Response codes

200 Agent statistics retrieved successfully
500 Unable to retrieve agent statistics

Command-line example

curl -X GET -u username:password -v http://localhost:16680/oemanager/applications/oepas1/agents/39028/metrics
curl -X GET -u username:password -v http://localhost:16680/oemanager/applications/oepas1/agents/39028/status
curl -X GET -u username:password -v http://localhost:16680/oemanager/applications/oepas1/agents/39028/requests
curl -X GET -u username:password -v http://localhost:16680/oemanager/applications/oepas1/agents/39028/connections
curl -X GET -u username:password -v http://localhost:16680/oemanager/applications/oepas1/agents/39028/threads

ABL HTTP client example

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

resp = OpenEdge.Net.HTTP.ClientBuilder:Build():Client
       :Execute(OpenEdge.Net.HTTP.RequestBuilder
        :Get('http://localhost:16680/oemanager/applications/oepas1/agents/39028/requests')
        :UsingBasicAuthentication(new OpenEdge.Net.HTTP.Credentials('PASOE Manager Application', 'username', 'password'))
        :Request
    ).

Request body example

NA

Response body example

{
  "operation": "GET AGENT CONNECTIONS",
  "outcome": "SUCCESS",
  "result": {
    "AgentConnection": []
  },
  "errmsg": "",
  "versionStr": "v12.2.0 ( 2020-03-17 )",
  "versionNo": 1
}