Skip to content

Services

GET requests for getting information about services:

POST requests to initiate or stop a request:

GET requests for getting information about requests:

Get all configurator services available for a node

Section titled “Get all configurator services available for a node”
GET /api/service/service-info/configurator/node/NODE_ID
curl -X GET "http://127.0.0.1:8080/api/service/service-info/configurator/node/5b9625f2-2fd1-4311-92aa-3477b33d11d7" \
-u admin:PASSWORD
{
"service_infos": [
{
"serviceId": "g2gFZAAEbm9kZW0AAAAkMzZlZTI4MTMtNzZjNi00ODIzLTljOGYtMjQzMDE0OTE2YmIxZAAMY29uZmlndXJhdG9yZAALZ2V0X2NvbmZpZ3NyAANkABB3b21iYXRAMTI3LjAuMC4xAQAC1UsNYAAD0fdnjg==",
"objectType": "node",
"objectId": "36ee2813-76c6-4823-9c8f-243014916bb1",
"isInternal": false,
"label": "Display an application's configuration parameters",
"description": "Retrieve all configuration parameters of the given application.",
"options": [
{
"name": "application",
"label": "Application",
"type": "enum",
"default": "asn1",
"enabled": true,
"mandatory": true,
"values": [
"asn1",
"base16",
"bcrypt",
"bear",
"compiler",
"cowboy",
"crypto",
"edoc",
"egd",
"eini",
"ejson",
"elarm",
"elarm_mailer",
"elibcloud",
"erlcloud",
...
],
"listitemType": []
}
],
"showInTools": false,
"featureId": "get_configs"
},
{
"serviceId": "g2gFZAAEbm9kZW0AAAAkMzZlZTI4MTMtNzZjNi00ODIzLTljOGYtMjQzMDE0OTE2YmIxZAAMY29uZmlndXJhdG9yZAAacHJvY2Vzc19tb25pdG9yX3NldF9jb25maWdyAANkABB3b21iYXRAMTI3LjAuMC4xAQAC1VsNYAAD0fdnjg==",
"objectType": "node",
"objectId": "36ee2813-76c6-4823-9c8f-243014916bb1",
"isInternal": false,
"label": "Process Monitor - Set Config",
"description": "Change monitored processes on the node",
"options": [
{
"name": "processes",
"label": "Processes",
"type": "list",
"default": "",
"enabled": true,
"mandatory": true,
"values": [],
"listitemType": [
{
"name": "process_name",
"label": "Process Name",
"type": "string",
"default": "",
"enabled": true,
"mandatory": true,
"values": [],
"listitemType": []
}
]
}
],
"showInTools": false,
"featureId": "process_monitor_set_config"
},
{...}
}
Argument Description
NODE_ID Required. The identifier of the node.

A service_infos object containing the list of available services for the given node.

Get all configurator services available for a node family

Section titled “Get all configurator services available for a node family”
GET /api/service/service-info/configurator/node-family/NODE_FAMILY_ID
curl -X GET "http://127.0.0.1:8080/api/service/service-info/configurator/node-family/12a74b0b-2d50-4270-a90c-2b5e50c2e0c8" \
-u admin:PASSWORD
{
"service_infos": [
{
"serviceId": "g2gFZAAGZmFtaWx5bQAAACQwYTk1ODIxYi05YWVhLTQ2ZWQtYjkxNS00MjVlMDJjYzFjYjNkAAxjb25maWd1cmF0b3JkAAxsaXN0X2dsb2JhbHNyAANkABB3b21iYXRAMTI3LjAuMC4xAQAC1YsNYAAD0fdnjg==",
"objectType": "node-family",
"objectId": "0a95821b-9aea-46ed-b915-425e02cc1cb3",
"isInternal": false,
"label": "List global configs",
"description": "List configurations per application set as global on all nodes of the family.",
"options": [
{
"name": "application",
"label": "Application name: (empty value means all applications)",
"type": "enum",
"default": "",
"enabled": true,
"mandatory": false,
"values": [
""
],
"listitemType": []
},
{
"name": "refresh",
"label": "Read values from",
"type": "enum",
"default": "Cache",
"enabled": true,
"mandatory": true,
"values": [
"Cache",
"Nodes"
],
"listitemType": []
}
],
"showInTools": false,
"featureId": "list_globals"
},
{...}
]
}
Argument Description
NODE_FAMILY_ID Required. The identifier of the node family.

A service_infos object containing the list of available services for the given node family.

Get all explorer services available for a node

Section titled “Get all explorer services available for a node”
GET /api/service/service-info/explorer/node/NODE_ID
curl -X GET "http://127.0.0.1:8080/api/service/service-info/explorer/node/5b9625f2-2fd1-4311-92aa-3477b33d11d7" \
-u admin:PASSWORD
{
"service_infos": [
{
"serviceId": "g2gFZAAEbm9kZW0AAAAkMzZlZTI4MTMtNzZjNi00ODIzLTljOGYtMjQzMDE0OTE2YmIxZAAIZXhwbG9yZXJkAAhwcm9maWxlcnIAA2QAEHdvbWJhdEAxMjcuMC4wLjEBAALXaA1gAATR92eO",
"objectType": "node",
"objectId": "36ee2813-76c6-4823-9c8f-243014916bb1",
"isInternal": false,
"label": "Call Count Profiling Tool (Beta)",
"description": "profile a program to find out how many times different\n functions are called.\n This feature is better used in a test environment, \n Runtime Tools should be running on the target node.",
"options": [
{
"name": "module",
"label": "module",
"type": "string",
"default": "",
"enabled": true,
"mandatory": true,
"values": [],
"listitemType": []
},
{
"name": "function",
"label": "function",
"type": "string",
"default": "",
"enabled": true,
"mandatory": true,
"values": [],
"listitemType": []
},
{
"name": "arity",
"label": "arity",
"type": "string",
"default": "",
"enabled": true,
"mandatory": true,
"values": [],
"listitemType": []
},
{
"name": "time",
"label": "time in milliseconds",
"type": "string",
"default": "",
"enabled": true,
"mandatory": true,
"values": [],
"listitemType": []
}
],
"showInTools": false,
"featureId": "profiler"
},
{
"serviceId": "g2gFZAAEbm9kZW0AAAAkMzZlZTI4MTMtNzZjNi00ODIzLTljOGYtMjQzMDE0OTE2YmIxZAAIZXhwbG9yZXJkABdvYnNlcnZlcl9ldHNfdGFibGVfdmlld3IAA2QAEHdvbWJhdEAxMjcuMC4wLjEBAALbqA1gAALR92eO",
"objectType": "node",
"objectId": "36ee2813-76c6-4823-9c8f-243014916bb1",
"isInternal": false,
"label": "ETS table content",
"description": "Display ETS table content.",
"options": [
{
"name": "TableId",
"label": "Table name or id",
"type": "string",
"default": "",
"enabled": true,
"mandatory": true,
"values": [],
"listitemType": []
}
],
"showInTools": false,
"featureId": "observer_ets_table_view"
},
{...}
]
}
Argument Description
NODE_ID Required. The identifier of the node.

A service_infos object containing the list of available services for the given node.

Get all explorer services available for a node family

Section titled “Get all explorer services available for a node family”
GET /api/service/service-info/explorer/node-family/NODE_FAMILY_ID
curl -X GET "http://127.0.0.1:8080/api/service/service-info/explorer/node-family/12a74b0b-2d50-4270-a90c-2b5e50c2e0c8" \
-u admin:PASSWORD
{
"service_infos": []
}
Argument Description
NODE_FAMILY_ID Required. The identifier of the node family.

A service_infos object containing the list of available services for the given node family.

Get all executor services available for a node

Section titled “Get all executor services available for a node”
GET /api/service/service-info/executor/node/NODE_ID
curl -X GET "http://127.0.0.1:8080/api/service/service-info/executor/node/5b9625f2-2fd1-4311-92aa-3477b33d11d7" \
-u admin:PASSWORD
{
"service_infos": [
{
"serviceId": "g2gFZAAEbm9kZW0AAAAkMzZlZTI4MTMtNzZjNi00ODIzLTljOGYtMjQzMDE0OTE2YmIxZAAIZXhlY3V0b3JkABRleGVjdXRlX3VzZXJfY29tbWFuZHIAA2QAEHdvbWJhdEAxMjcuMC4wLjEBAALbsA1gAALR92eO",
"objectType": "node",
"objectId": "36ee2813-76c6-4823-9c8f-243014916bb1",
"isInternal": false,
"label": "Evaluate Erlang expression",
"description": "Evaluate an Erlang expression on the managed node.",
"options": [
{
"name": "Expr",
"label": "Erlang expression to be evaluated",
"type": "string",
"default": "",
"enabled": true,
"mandatory": true,
"values": [],
"listitemType": []
}
],
"showInTools": false,
"featureId": "execute_user_command"
},
{
"serviceId": "g2gFZAAEbm9kZW0AAAAkMzZlZTI4MTMtNzZjNi00ODIzLTljOGYtMjQzMDE0OTE2YmIxZAAIZXhlY3V0b3JkAAhmb3JjZV9nY3IAA2QAEHdvbWJhdEAxMjcuMC4wLjEBAALXcw1gAATR92eO",
"objectType": "node",
"objectId": "36ee2813-76c6-4823-9c8f-243014916bb1",
"isInternal": false,
"label": "Garbage Collect Processes",
"description": "Garbage collect on the managed node for each process.",
"options": [
{
"name": "GroupSize",
"label": "Number of processes garbage collected in a bunch",
"type": "number",
"default": "1000",
"enabled": true,
"mandatory": true,
"values": [],
"listitemType": []
},
{
"name": "GroupPause",
"label": "Pause between process GCs in millisecs",
"type": "number",
"default": "100",
"enabled": true,
"mandatory": true,
"values": [],
"listitemType": []
}
],
"showInTools": false,
"featureId": "force_gc"
},
{...}
]
}
Argument Description
NODE_ID Required. The identifier of the node.

A service_infos object containing the list of available services for the given node.

Get all executor services available for a node family

Section titled “Get all executor services available for a node family”
GET /api/service/service-info/executor/node-family/NODE_FAMILY_ID
curl -X GET "http://127.0.0.1:8080/api/service/service-info/executor/node-family/12a74b0b-2d50-4270-a90c-2b5e50c2e0c8" \
-u admin:PASSWORD
{
"service_infos": []
}
Argument Description
NODE_FAMILY_ID Required. The identifier of the node family.

A service_infos object containing the list of available services for the given node family.

POST /api/request/service_request
{
"id": "ID",
"arguments": "ARGUMENTS"
}
curl -X POST "http://127.0.0.1:8080/api/request/service_request" \
-H "Content-Type: application/json" \
-d '{"id": "g2gFZAAEbm9kZW0AAAAkNWI5NjI1ZjItMmZkMS00MzExLTkyYWEtMzQ3N2IzM2QxMWQ3ZAAMY29uZmlndXJhdG9yZAALc2V0X2NvbmZpZ3NyAANkABB3b21iYXRAMTI3LjAuMC4xAgAANOYAAAAAAAAAAA==", "arguments": {"application": "lager", "changes": [{"configParamName": "crash_log_count", "configParamValue": "10", "persist": "No"}]}}' \
-u admin:PASSWORD
{
"requestId": "108f6333-d518-4017-8b0a-da245d1ef2a8",
"label": "Set a configuration parameter"
}
Argument Description
id Required. The identifier of service (serviceId) as returned by the GET requests above.
arguments Required. The arguments to be passed to the service. Each value should be either a string or a list containing string→string objects.

Information about the request that was initiated. If an error occures an error object is returned:

{"error":"Reason"}

When a service responds by sending data to WombatOAM (which is displayed to the user), this data may contain further actions that can be executed by the user.

Let’s assume that we have a “Processes” request, whose response to the Get information about a request HTTP request contains a table of the top processes on the managed node, with some additional information.

The cells in the first column in this table are links because they provide a local menu, which shows all the actions that can be performed in this cell. Each such action defines a new potential request. This “initiate a feature request” HTTP request is about initiating such a feature request.

The JSON response behind this Dashboard table is the following:

"data": [
[
{
"data": "<0.3.0>",
"actions": [
{
"label": "Terminate process",
"featureRequest": {
"featureName": "kill_process",
"objectType": "node",
"objectId": null,
"node": "test1@127.0.0.1",
"arguments": "g2wAAAACaAJtAAAAA1BpZG0AAAAHPDAuMy4wPmgCbQAAAAZSZWFzb25tAAAABGtpbGxq"
}
},
... // further actions in this cell
]
},
... // other columns
],
... // other rows
]

When the user selects an action, that action shall be sent to WombatOAM using the “Initiate a feature request” HTTP request without being changed. The “arguments” parameter contains the arguments needed by the new feature request (in this case the pid of the selected process) in an encoded format.

POST /api/request/feature_request
curl -X POST "http://127.0.0.1:8080/api/request/feature_request" \
-H "Content-Type: application/json" \
-d '{"featureName": "set_as_global", "objectType": "node-family", "objectId": null, "node": "test1@127.0.0.1", "arguments": "g2wAAAACaAJtAAAAC2FwcGxpY2F0aW9ubQAAAAVsYWdlcmgCbQAAAA9jb25maWdQYXJhbU5hbWVtAAAAD2NyYXNoX2xvZ19jb3VudGo="}' \
-u admin:PASSWORD
{
"requestId": "6dee9dab-2266-45e2-8fcb-f8fe500ae8a3",
"label": "Set application parameter as global"
}
Argument Description
featureName Required. The name of the feature to be initiated.
objectType Required. Either “node” or “node-family”. It specified whether the action should be performed on a node or a node family.
objectId Required. (string or null) This field can be used to specify the id of the node or node family on which the action should be performed.
node Optional. (string or null) This field can be used to specify the name of the node on which the action should be performed if objectId is null. Either objectId or node has to be not null.
arguments Required. The arguments to be given to the feature. This field is received in an encoded format from /api/request/request-info and shall be supplied here unchanged.

Information about the request that was initiated.

Stop a request. Note that only interruptible requests can be stopped, such as periodically listing information about the processes.

POST /api/request/stop/REQUEST_ID
curl -X POST "http://127.0.0.1:8080/api/request/stop/108f6333-d518-4017-8b0a-da245d1ef2a8" \
-H "Content-Type: application/json" \
-u admin:PASSWORD

In case of success, the response body is empty.

{
"error": "{no_such_child,<<\"108f6333-d518-4017-8b0a-da245d1ef2a8\">>}"
}
Argument Description
REQUEST_ID Required. The identifier of the request to be stopped.

An empty response or an error object.

Start monitoring given processes on all or given nodes. Without a list of nodes the processes will be monitored on all nodes.

POST /api/config/monitor/PROCESSES
{
"processes": "PROCESSES",
"nodes": "NODES"
}
Version 1:
curl -X POST "http://localhost:8080/api/config/monitor" \
-H "Content-Type: application/json" \
-d '{"processes": ["process_to_monitor"]}' \
-u admin:PASSWORD
Version 2:
curl -X POST "http://localhost:8080/api/config/monitor" \
-H "Content-Type: application/json" \
-d '{"processes": ["process_to_monitor"], "nodes": ["wombat@127.0.0.1"]}' \
-u admin:PASSWORD
{
"success": true
}
{
"error": "{missing_key, <<\"Missing -processes- key from body\">>}"
}
{
"error":
"{
success: false,
error: <<\"Only admin users are allowed to do this request\">>,
reason: not_authorized
}"
}
Argument Description
PROCESSES Required. The list of processes must be given in order to start monitoring. List of nodes can be left out.
NODES Optional. List of nodes the processes must be monitored on.

Either a success object or an error object.

GET /api/request/request-info/REQUEST_ID
curl -X GET "http://127.0.0.1:8080/api/request/request-info/0cbde1cb-7d3e-4e98-9c20-86d14d9dd8e4" \
-u admin:PASSWORD
{
"requestId": "0cbde1cb-7d3e-4e98-9c20-86d14d9dd8e4",
"label": "Processes",
"objectType": "node",
"objectId": "5b9625f2-2fd1-4311-92aa-3477b33d11d7",
"startDate": 1459016287788,
"endDate": null,
"arguments": [
{
"label": "Refresh interval in seconds",
"value": "10"
},
{
"label": "Number of listed processes",
"value": "2"
},
{
"label": "Order by column",
"value": "Reds"
},
{
"label": "Order direction",
"value": "Descending"
}
],
"infoMessages": [],
"displayInfo": {
"dataStructure": "table",
"label": "Processes",
"tableHeaders": [
"Pid",
"Name or Initial Func",
"Reds",
"Memory",
"MsgQ",
"Current Function"
],
"isInteractive": true
},
"streamInfo": {
"isPeriodic": true,
"isInterruptible": true
},
"data": [
[
{
"data": "<0.3.0>",
"actions": [
{
"label": "Terminate process",
"featureRequest": {
"featureName": "kill_process",
"objectType": "node",
"objectId": null,
"node": "test1@127.0.0.1",
"arguments": "g2wAAAACaAJtAAAAA1BpZG0AAAAHPDAuMy4wPmgCbQAAAAZSZWFzb25tAAAABGtpbGxq"
}
},
{
"label": "Process info",
"featureRequest": {
"featureName": "process_info",
"objectType": "node",
"objectId": null,
"node": "test1@127.0.0.1",
"arguments": "g2wAAAABaAJtAAAAA1BpZG0AAAAHPDAuMy4wPmo="
}
},
{
"label": "Process messages",
"featureRequest": {
"featureName": "process_messages",
"objectType": "node",
"objectId": null,
"node": "test1@127.0.0.1",
"arguments": "g2wAAAABaAJtAAAAA1BpZG0AAAAHPDAuMy4wPmo="
}
},
{
"label": "Process dictionary",
"featureRequest": {
"featureName": "process_dictionary",
"objectType": "node",
"objectId": null,
"node": "test1@127.0.0.1",
"arguments": "g2wAAAABaAJtAAAAA1BpZG0AAAAHPDAuMy4wPmo="
}
},
{
"label": "Process state",
"featureRequest": {
"featureName": "process_state",
"objectType": "node",
"objectId": null,
"node": "test1@127.0.0.1",
"arguments": "g2wAAAABaAJtAAAAA1BpZG0AAAAHPDAuMy4wPmo="
}
},
{
"label": "Process stack trace",
"featureRequest": {
"featureName": "process_stack_trace",
"objectType": "node",
"objectId": null,
"node": "test1@127.0.0.1",
"arguments": "g2wAAAABaAJtAAAAA1BpZG0AAAAHPDAuMy4wPmo="
}
}
]
},
{
"data": "erl_prim_loader",
"actions": []
},
{
"data": "417433294",
"actions": []
},
{
"data": "62848",
"actions": []
},
{
"data": "0",
"actions": []
},
{
"data": "{erl_prim_loader,loop,3}",
"actions": []
}
],
[
{
"data": "<0.16279.12>",
"actions": [
{
"label": "Terminate process",
"featureRequest": {
"featureName": "kill_process",
"objectType": "node",
"objectId": null,
"node": "test1@127.0.0.1",
"arguments": "g2wAAAACaAJtAAAAA1BpZG0AAAAMPDAuMTYyNzkuMTI+aAJtAAAABlJlYXNvbm0AAAAEa2lsbGo="
}
},
{
"label": "Process info",
"featureRequest": {
"featureName": "process_info",
"objectType": "node",
"objectId": null,
"node": "test1@127.0.0.1",
"arguments": "g2wAAAABaAJtAAAAA1BpZG0AAAAMPDAuMTYyNzkuMTI+ag=="
}
},
{
"label": "Process messages",
"featureRequest": {
"featureName": "process_messages",
"objectType": "node",
"objectId": null,
"node": "test1@127.0.0.1",
"arguments": "g2wAAAABaAJtAAAAA1BpZG0AAAAMPDAuMTYyNzkuMTI+ag=="
}
},
{
"label": "Process dictionary",
"featureRequest": {
"featureName": "process_dictionary",
"objectType": "node",
"objectId": null,
"node": "test1@127.0.0.1",
"arguments": "g2wAAAABaAJtAAAAA1BpZG0AAAAMPDAuMTYyNzkuMTI+ag=="
}
},
{
"label": "Process state",
"featureRequest": {
"featureName": "process_state",
"objectType": "node",
"objectId": null,
"node": "test1@127.0.0.1",
"arguments": "g2wAAAABaAJtAAAAA1BpZG0AAAAMPDAuMTYyNzkuMTI+ag=="
}
},
{
"label": "Process stack trace",
"featureRequest": {
"featureName": "process_stack_trace",
"objectType": "node",
"objectId": null,
"node": "test1@127.0.0.1",
"arguments": "g2wAAAABaAJtAAAAA1BpZG0AAAAMPDAuMTYyNzkuMTI+ag=="
}
}
]
},
{
"data": "{wombat_plugin,init,1}",
"actions": []
},
{
"data": "65862347",
"actions": []
},
{
"data": "3147352",
"actions": []
},
{
"data": "0",
"actions": []
},
{
"data": "{gen_server,loop,6}",
"actions": []
}
]
]
}
Argument Description
REQUEST_ID Required. The identifier of the request.

Information about the request, including its last stream data.

GET /api/request/node/NODE_ID
curl -X GET "http://127.0.0.1:8080/api/request/node/5b9625f2-2fd1-4311-92aa-3477b33d11d7" \
-u admin:PASSWORD
{
"requests": [
{
"requestId": "eb93644c-5dd8-4b53-ade2-f4024ea7b397",
"label": "Processes"
}
]
}
Argument Description
NODE_ID Required. The identifier of the node.

Basic information about the requests running on the given node.

GET /api/request/node-family/NODE_FAMILY_ID
curl -X GET "http://127.0.0.1:8080/api/request/node-family/12a74b0b-2d50-4270-a90c-2b5e50c2e0c8" \
-u admin:PASSWORD
{
"requests": [
{
"requestId": "84d829d1-453c-4b45-aa51-c0ab670b9b98",
"label": "List global configs"
}
]
}
Argument Description
NODE_FAMILY_ID Required. The identifier of the node family.

Basic information about the requests running on the given node family.

GET /api/request/history/node/NODE_ID
curl -X GET "http://127.0.0.1:8080/api/request/history/node/5b9625f2-2fd1-4311-92aa-3477b33d11d7" \
-u admin:PASSWORD
{
"requests": [
{
"requestId": "b2558d43-f118-4f92-92ea-e9fd29de9bb7",
"label": "Processes"
},
{
"requestId": "17fa01c5-1fa2-4a41-b288-f7cf5131bc08",
"label": "Display an application's configuration parameters"
}
]
}
Argument Description
NODE_ID Required. The identifier of the node.

Basic information about the requests finished on the given node family.

GET /api/request/history/node-family/NODE_FAMILY_ID
curl -X GET "http://127.0.0.1:8080/api/request/history/node-family/12a74b0b-2d50-4270-a90c-2b5e50c2e0c8" \
-u admin:PASSWORD
{
"requests": [
{
"requestId": "b2558d43-f118-4f92-92ea-e9fd29de9bb7",
"label": "Processes"
},
{
"requestId": "17fa01c5-1fa2-4a41-b288-f7cf5131bc08",
"label": "Display an application's configuration parameters"
}
]
}
Argument Description
NODE_FAMILY_ID Required. The identifier of the node family.

Basic information about the requests finished on the given node.