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/2
in Erlang/OTP documentationtransient
: seeapplication:start/2
in Erlang/OTP documentationtemporary
: seeapplication:start/2
in 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.stdlib
doesn'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
time
attribute contains the time when the module was compiled, in milliseconds since 1970-01-01 00:00:00. cmp_version
is the version of the Erlangcompiler
application used to compile this module.vsn
is the version of the Erlang module (seebeam_lib:version/1
in Erlang/OTP documentation).md5
is the MD5 checksum of the module code (seebeam_lib:md5/1
in Erlang/OTP documentation).source
is the full path of the source file used to compile this module.beam_location
is the full path of the compiled object file.native
is"true"
if the module has native compiled code,"false"
otherwise.sticky
is"true"
if module that has been loaded from a sticky directory,"false"
otherwise.application
is the name of the application that contains this module orundefined
if the module doesn't belong to any application.binary_size
the size of the compiled binary (.beam) file in bytesexported_funcs
the module's exported function in an array containing objects whith keysname
andarity
compile_info
is 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 havingkey
andvalue
properties 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.