getProcessActivity
getProcessActivity: object
| Parameter | Type | Description | |
|---|---|---|---|
| Result | object | ← | Snapshot of running processes |
Description
The getProcessActivity command returns a snapshot of running processes at a given time. This command returns all processes, including internal processes that are not reachable by the processProperties command.
Example of returned object:
{
"processes": [
{
"name": "Application process",
"sessionID": "3C81A8D7AFE64C2E9CCFFCDC35DC52F5",
"number": 4,
"ID": 4,
"visible": true,
"systemID": "123145476132864",
"type": -18,
"state": 0,
"cpuUsage": 0,
"cpuTime": 0.006769,
"preemptive": false
},...
]
}
Processes
The "processes" property contains a collection of objects describing all running processes on the server. Each process object contains the following properties:
| Property name | Type | Description |
|---|---|---|
| name | string | Process name |
| sessionID | string | Session UUID |
| number | integer | Process number |
| ID | integer | Process unique ID |
| visible | boolean | true if visible, false otherwise |
| systemID | string | ID for the user process, Qodly process or spare process |
| type | integer | Running process type. |
| state | integer | Current status (see processState constant list) |
| cpuUsage | number | Percentage of time devoted to this process (between 0 and 1) |
| cpuTime | number | Running time (seconds) |
| preemptive | boolean | always true |
| url | string | URL with path and parameters (if any) of the web (-3) processes running on the web server. Not returned for other types of processes. |