Node information REST interface
- Get system information about a node
- Get application information about a node
- Get module information about a node
Get system information about a node
Retrieve information about the software and hardware environment of the Erlang node including operating system and Erlang versions, processor bit size, etc.
Definition
1 | |
Example request
1 | |
Example response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | |
Arguments
| Argument | Description |
|---|---|
| node ID | Required. The identifier of the node to be retrieved. |
Returns
A nodeInfo object if a valid identifier was provided. The values of the
attributes are strings.
Get application information about a node
Retrieve information about the applications loaded on the Erlang node.
Definition
1 | |
Example request
1 | |
Example response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | |
Arguments
| Argument | Description |
|---|---|
| node ID | Required. The identifier of the node to be retrieved. |
Returns
An array of nodeAppInfo objects if a valid identifier was provided. There's one
nodeAppInfo object for each application. The possible values of the type
attribute are
permanent: seeapplication:start/2in Erlang/OTP documentationtransient: seeapplication:start/2in Erlang/OTP documentationtemporary: seeapplication:start/2in Erlang/OTP documentationunknown: the application is loaded, but not startedError: application running, but not started!
The possible values for the running attribute are
- the process identifier (PID) of the application master process in the application
library: if the application is started, but has no master process (e.g.stdlibdoesn't have one)Loaded, but not started: the application is loaded, but not startedcrashed: the application is started, but is not runningunknown: the application is not started but is running and there's no application master process for the application
The modules attribute contains the list of Erlang modules in this
application. The config attribute contains the application environment
variables. The name, description and version attributes are strings.
Get module information about a node
Retrieve information about the modules loaded on the Erlang node.
Definition
1 | |
Example request
1 | |
Example response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |
Arguments
| Argument | Description |
|---|---|
| node ID | Required. The identifier of the node to be retrieved. |
Returns
An array of module objects if a valid identifier was provided. There's one
module object for each Erlang module.
- The
timeattribute contains the time when the module was compiled, in milliseconds since 1970-01-01 00:00:00. cmp_versionis the version of the Erlangcompilerapplication used to compile this module.vsnis the version of the Erlang module (seebeam_lib:version/1in Erlang/OTP documentation).md5is the MD5 checksum of the module code (seebeam_lib:md5/1in Erlang/OTP documentation).sourceis the full path of the source file used to compile this module.beam_locationis the full path of the compiled object file.nativeis"true"if the module has native compiled code,"false"otherwise.stickyis"true"if module that has been loaded from a sticky directory,"false"otherwise.applicationis the name of the application that contains this module orundefinedif the module doesn't belong to any application.binary_sizethe size of the compiled binary (.beam) file in bytesexported_funcsthe module's exported function in an array containing objects whith keysnameandaritycompile_infois an object containing compile time informationoutdir: the compiled object's directoryinclude_paths: array of paths which were used as include paths during compilationoptions: array of strings containing compile time optionsdefines: an array of objects havingkeyandvalueproperties containing the macros defined at compile time
Get the metric limits for a node
Retrieve all the available metric limits of the Erlang node.
Definition
1 | |
Example request
1 | |
Example response
1 2 3 4 5 6 7 | |
Arguments
| Argument | Description |
|---|---|
| node ID | Required. The identifier of the node to be retrieved. |
Returns
An array of tuples with every metric associated to its limit value.