@@ -526,6 +526,31 @@ class OpenEdge.ApplicationServer.Util.OEManagerConnection implements ISupportLog
526526 return new JsonArray ().
527527 end method . /* GetAgentMetrics */
528528
529+ /* Get a listng of agent (ABL) requests for a single agent of an ABL Application
530+ https://docs.progress.com/bundle/pas-for-openedge-reference/page/Get-current-request-information.html
531+
532+ @param character ABL Application Name
533+ @param integer Agent Process ID (PID)
534+ @return JsonArray Array of Requests */
535+ method public JsonArray GetAgentRequests ( input pcAblApp as character ,
536+ input piPID as integer ):
537+ define variable oJsonResp as JsonObject no-undo .
538+
539+ assign oJsonResp = this-object :GetData (substitute (OEManagerEndpoint :AgentRequests , pcAblApp , piPID )).
540+
541+ if JsonPropertyHelper :HasTypedProperty (oJsonResp , " error" , JsonDataType :String ) then
542+ undo , throw new Progress.Lang.AppError (oJsonResp :GetCharacter (" error" ), 0 ).
543+
544+ if JsonPropertyHelper :HasTypedProperty (oJsonResp , " result" , JsonDataType :Object ) then do :
545+ if JsonPropertyHelper :HasTypedProperty (oJsonResp :GetJsonObject (" result" ), " AgentRequest" , JsonDataType :Array ) then
546+ return oJsonResp :GetJsonObject (" result" ):GetJsonArray (" AgentRequest" ).
547+ else
548+ return new JsonArray ().
549+ end . /* result */
550+ else
551+ return new JsonArray ().
552+ end method . /* GetAgentRequests */
553+
529554 /* Get a listng of agent (ABL) sessions for a single agent of an ABL Application
530555 https://docs.progress.com/bundle/pas-for-openedge-reference/page/Get-session-metrics.html
531556
0 commit comments