Description

Get session metrics for an agent of an ABL application.

HTTP Operation

GET

URI

//host_name:port/oemanager/applications/ABL_app_name/agents/agentPID/sessions
Note: Agent PID (for example, 1144) or agent ID (for example, W9UI_6dJQ-qSsk-o25mWAw) 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 GET -u username:password -v http://localhost:16680/oemanager/applications/oepas1/agents/39028/sessions

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/sessions')
      :UsingCredentials(new OpenEdge.Net.HTTP.Credentials('', 'username', 'password'))
      :Request
   ).

Request body example

NA

Response body example

{
   "operation":"GET AGENT SESSIONS",
   "outcome":"SUCCESS",
   "result":{
      "AgentSession":[
         {
            "SessionId":4,
            "SessionState":"IDLE",
            "StartTime":"2019-12-04T11:48:22.453",
            "EndTime":null,
            "ThreadId":-1,
            "ConnectionId":null,
            "SessionExternalState":0,
            "SessionMemory":870085
         },
         {
            "SessionId":7,
            "SessionState":"IDLE",
            "StartTime":"2019-12-04T11:48:22.453",
            "EndTime":null,
            "ThreadId":-1,
            "ConnectionId":-1,
            "SessionExternalState":0,
            "SessionMemory":10310903
         }
      ]
   },
   "errmsg":"",
   "versionStr":"v12.1.0 ( 2019-08-07 )",
   "versionNo":1
}