This API call provides an indication of the status of ExtraView.
SYNTAX
http://www.myserver.com/evj/ExtraView/ev_api.action?
user_id=username
&password=password OR [&access_token=token-value]
&statevar=get_heartbeat
[&tasks=yes]
NOTES
The return from the server is XML, similar to the following:
<?xml version="1.0" encoding="UTF-8" ?> |
In the above, the section on task information is repeated for each configured task on the application server. The returned information includes:
task name | name of the background task, e.g., SESSION_MONITOR, TASK_CONTROL_TASK, BATCHMAIL, etc. |
node name | name of the node hosting the evapi service |
start option | START_NOW, STOP_NOW, START_ON_BOOT, or none |
task state | STARTED, STOPPED, or ERROR |
poll interval seconds | the (minimum) number of seconds between polled executions |
thread state | running or stopped |
seconds since last execution | number of seconds since the task was most recently scheduled to run |
thread priority | the priority of the thread ( using Java thread priority values) — may not appear in output |
The return indicates not only that ExtraView is alive, but also it confirms that a database connection could be made, that the ExtraView servlet is running on the application server, and that the web server is running.
Note that the tag named DB_DATETIME and its value provide the current timestamp of the database server. This can be useful to provide local client applications with the server time of the host ExtraView application.
The amount of free memory, the total memory and the amount of time the command took to execute are also returned.
This command can be placed in a script that is run at routine intervals to provide an indication of the health of the system. Not only can confirmation be made that the system is alive, but the time to execute the command is available
The optional access_token
parameter allows you to use a valid OAuth2 token obtained with the get_token
command. If you provide the access_token
parameter, then the user_id
and password
parameters should not be provided. This prevents the password being sent in clear text over your network connection.