Get agent session metrics

When to use:

Agent Session Metrics provides state of the session, memory consumed, session-Id, time it was started for each agent session.

Query:
# Tokens: AGENT_ID
# Get agent session metrics
{"O":"PASOE:type=OEManager,name=AgentManager","M":["getSessionMetrics","16952"]}
Note: In this example, the token AGENT_ID is replaced with 16952.
Result:

The output demonstrates information for all sessions (4 & 7). Information includes SessionState, ConnectionId, SessionMemory, EndTime, ThreadId, SessionExternalState, StartTime and SesssionId.

{
  "getSessionMetrics": {
    "AgentSession": [
      {
        "SessionState": "IDLE",
        "ConnectionId": "org.codehaus.jettison.json.JSONObject$Null",
        "SessionMemory": 759943,
        "EndTime": "org.codehaus.jettison.json.JSONObject$Null",
        "ThreadId": -1,
        "SessionExternalState": 0,
        "StartTime": "2018-07-11T13:33:45.491",
        "SessionId": 4
      },
      {
        "SessionState": "IDLE",
        "ConnectionId": "org.codehaus.jettison.json.JSONObject$Null",
        "SessionMemory": 6458674,
        "EndTime": "org.codehaus.jettison.json.JSONObject$Null",
        "ThreadId": -1,
        "SessionExternalState": 0,
        "StartTime": "2018-07-11T13:33:45.491",
        "SessionId": 7
      }
    ]
  }
}