Dynatrace AppMon 6.5 Documentation

Other Doc Versions & KB

Skip to end of metadata
Go to start of metadata

Execution of tasks and monitors can be triggered by REST services. Some REST services also provide information if execution of specific tasks and monitors is currently ongoing.

Tasks

Run a Task

GET

https://<server>:8021/rest/management/profiles/<profilename>/tasks/<taskname>/run

produces text/xml

 If the task is not available, HTTP response code 404 (Not Found) is returned. Otherwise, the resulting XML document contains a result root node with a value attribute of true or false. A value of true indicates that execution of the specified task was successfully triggered.

 Example
The following sample HTTP GET request triggers the execution of task task1 in the System Profile easyTravel:

Check Running State

GET

https://<server>:8021/rest/management/profiles/<profilename>/tasks/<taskname>/isrunning

produces text/xml

If the task is not available, HTTP response code 404 (Not Found) is returned. Otherwise, the resulting XML document contains a result root node with a value attribute of true or false, which indicates whether execution of the specified task or monitor is currently ongoing.

Monitors

Similar to the interfaces running a Task and check its running state, also Monitors can be ran and checked.

Run a Monitor

GET

https://<server>:8021/rest/management/profiles/<profilename>/monitors/<monitorname>/run

produces text/xml

Check Running State

GET

https://<server>:8021/rest/management/profiles/<profilename>/monitors/<monitorname>/isrunning

produces text/xml