Home Applications System-Task-REST

System-Task-REST

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
4
1 reviews
0
Awards
136
Views
3
IPM installs
1
0
Details
Releases
Reviews
Issues
Pull requests
System task details via REST

What's new in this version

Initial Release

Installation

Clone/git pull the repo into any local directory

$ git clone https://github.com/intersystems-community/objectscript-docker-template.git

Open the terminal in this directory and run:

$ docker-compose build
  1. Run the IRIS container with your project:
$ docker-compose up -d

Get System task details in REST service

Create a web application and add this dispatcher class.

database information urls

  1. Get database freespace
    http://server:port/crud/database/freespace (http://localhost:52773/crud/database/freespace)
    image

Task information urls
List of urls

  1. Get all task list
    http://server:port/crud/task/alltask
  2. filter task details by namespace, taskname etc… (Use SYS instead of %SYS)
    http://server:port/crud/task/alltask/SYS
  3. Get list of upcoming task details
    http://server:port/crud/task/upcomingtask
  4. Get list of on-demand task
    http://server:port/crud/task/ondemandtask
  5. Get entire task history
    http://server:port/crud/task/taskhistory
  6. Get task history for specific task
    http://server:port/crud/task/taskhistory/taskname

Sample JSON
[
{
“Last Start”: “2023-08-21 09:17”,
“Completed”: “2023-08-21 09:17”,
“Task Name”: “ExportQueryToCSV”,
“Status”: “1”,
“Result”: “Success”,
“Task”: “1001”,
“NameSpace”: “LEARNING”,
“Routine”: “Samples.TaskMgr.SQLExportTask”,
“Pid”: “14188”,
“%ER Date”: “”,
“%ER Error #”: “”,
“Username”: “_SYSTEM”,
“LogDate”: “2023-08-21”,
“LogTime”: “33446”
}
]

task history for specific task
http://localhost:52773/crud/task/taskhistory/ExportQueryToCSV
image

How to Test it

Run the various URLs from your Browser or Postman or similar

Read more
Made with
Install
zpm install System-Task-REST download archive
Version
1.0.024 Aug, 2023
ObjectScript quality test
Category
Developer Environment
Works with
InterSystems IRISInterSystems IRIS for HealthCachéEnsemble
First published
24 Aug, 2023
Last checked by moderator
11 Sep, 2023Works