Get single session metrics

When to use:

To get a single agent session metrics including state of the session, connection-Id, memory consumed, session-Id, time it was started for the agent.

Query:
# Tokens: AGENT_ID, SESSION_ID
# Get a single agent session's metrics
{"O":"PASOE:type=OEManager,name=AgentManager","M":["getSingleSessionMetrics","16952", "7"]}
Note: In this example, the token AGENT_ID is replaced with 16952 and SESSION_ID is replaced with 7.
Note: The AgentSession property returns an empty string if an non-existent SESSION_ID is requested.

Result:

The output demonstrates information of a single session (7). Information includes SessionState, ConnectionId, SessionMemory, EndTime, ThreadId, SessionExternalState, StartTime and SesssionId.

{
	"getSingleSessionMetrics": {
		"AgentSession": [{
			"SessionState": "IDLE",
			"ConnectionId": "org.codehaus.jettison.json.JSONObject$Null",
			"SessionMemory": 758886,
			"EndTime": "org.codehaus.jettison.json.JSONObject$Null",
			"ThreadId": -1,
			"SessionExternalState": 0,
			"StartTime": "2022-09-06T09:03:39.672+04:00",
			"SessionId": 7
		}]
	}
}