Hi, I am trying to fetch the status of a device if the device is executing a job.
Using the API link “v2/devices/list”.
Below is the response:
{
"page": {
"offset": 0,
"total": 1,
"totalFilter": 1
},
"list":
{
"id": "48",
"type": "SINGLE_USER",
"hostName": "ALMDBSSAA6024",
"status": "CONNECTED",
"poolName": "",
"updatedBy": "62",
"updatedOn": "2023-08-16T15:46:52.917400200Z",
"botAgentVersion": "21.222",
"nickname": "",
"description": "",
"maxCount": 1,
"defaultUsers":
{
"id": "62",
"username": "bot084",
"domain": ""
}
],
"lifespan": "PERSISTENT",
"installationType": "USER_SPECIFIC",
"logConfiguration": {
"logLevel": "INFO",
"logFileSize": 10,
"numberOfLogFile": 10,
"logCollectorEnabled": false,
"level": "CONTROL_ROOM"
},
"logLevel": "INFO"
}
]
}
Here the STATUS is CONNECTED which defines if the device is connected to the Control Room.
Is there any way to get the status of the Activity. Eg “Active” as shown in the screenshot.
I am trying to deploy a task only if a device is available/idle to perform the task.
I am not using device pool as a task can be sent to any of the device listed in the pool. I want to control which device picks the job. Is there any way to achieve this?