Monitor Agent Connections Method

The sut status endpoint shows the status of agent connections. This lists all open connections and give you a glimpse of what is happening with each one. When no runs are currently executing, you will see a basic response showing a list of connected agents with agent_name. When a run is executing, you will additionally get the process_id that is being used to run the engine, and an execution_status object containing details about what is running.

Method

POST -> http://localhost/api/sut/status

Headers

Name Value
Authorization bearer <access_token>
Content-Type application/x-www-form-urlencoded

Body Parameters

None

Possible Responses

Status Status Text Description
200 OK  
401 Unauthorized The access token was not valid

Response Body JSON

A typical response when no activity is under way:

[

{

"agent_name": "martin2",

"process_id": 0

}

]

A typical response when there is activity:

[

{

"agent_name": "martin2",

"process_id": 58914,

"execution_status": {

"id": "039c7261-9eda-45b3-a74a-441ba039dc09",

"modelname": "BBCSport",

"username": "martin.dann@eggplant.io",

"starttime": "2018-06-01 10:06:45.545359+01",

"endtime": null,

"type": "model",

"agentname": "martin2",

"initiator": "api",

"status": "Running",

"processid": "58914"

},

"process_status": "Running",

}

]

Name Type Description
agent_name Text The alias for the agent connection
process_id Integer The id of the process that is running the Eggplant AI engine
execution_status Object Contains details of the associated run if there is any activity

id

Text Unique id associated with the run

modelname

Text The name of the currently running model

username

Text The email address of the user that was used to obtain a token

starttime

Date string Execution start time

endtime

Date string Execution end time

type

Text Either model or directedTest, depending on which was chosen

agentname

Text Confirmation of the agent connection name from within the execution_status

initiator

Text Denotes which platform started the run. This will always be API from the API

status

Text The current execution status of the run: Running, Passed, Failed, or Incomplete

processid

Text A confirmation of the process id being used by the Eggplant AI engine

 

This topic was last updated on August 19, 2021, at 03:30:47 PM.

Eggplant icon Eggplantsoftware.com | Documentation Home | User Forums | Support | Copyright © 2022 Eggplant