A MoogDb v2 method that returns a list of processes from the database.
Method getProcesses
takes the following request arguments:
Name | Type | Required | Description |
---|---|---|---|
| Integer | No | Maximum number of processes to return. Default is 1000. |
| String | Yes | A JSON or SQL like filter of the process name. |
| Boolean | No | If |
Method getProcesses
returns the following response:
Type | Description |
---|---|
Object | A list of strings describing the requested processes, or a null value if there is an error. |
The following examples demonstrate typical use of method getProcesses
:
Example request to return the first thousand process names containing "Network":
var actions = moogdb.getProcesses(1000, “Network”, false);
Example response returning returning details of all process names containing "Network":
[
{
"process_id": 1,
"name": "Network LON",
"description": "Network London"
},
{
"process_id": 2,
"name": "NY Network A",
"description": "Network New York A"
},
{
"process_id": 3,
"name": "NY Network B",
"description": "Network New York B"
}
]