Oms API GET download log file - openmpp/openmpp.github.io GitHub Wiki
GET download log file from download directory on the server.
This method only avaliable if server configured to create downloads for user.
This is a beta version and may change in the future.
Download can be initiated through UI or by direct API call:
For each download oms
service does create a download log file, for example:
-
RiskPaths.run.102.ready.download.log
RiskPaths model run results, download ready for user -
RiskPaths.run.102.progress.download.log
RiskPaths model run results, download preparation in progress -
RiskPaths.run.102.error.download.log
RiskPaths model run results, download preparation failed
Example of RiskPaths.run.102.ready.download.log
:
2021-07-31 18:13:10.293 Download of: RiskPaths.run.102
---------------
Model Name : RiskPaths
Model Version : 3.0.0.0 2021-07-16 13:14:14.451
Model Digest : 0f71660ba32bc002282c995e4552a14a
Run Name : Default
Run Version : 102 2021-07-16 13:14:22.227
Run Digest : 4354632979ec90f48441ccdeb0ca803b
Folder : RiskPaths.run.102
---------------
2021-07-31 18:13:10.293 delete: RiskPaths.run.102.ready.download.log
2021-07-31 18:13:10.293 delete: RiskPaths.run.102.error.download.log
2021-07-31 18:13:10.293 delete: RiskPaths.run.102.zip
2021-07-31 18:13:10.293 delete: RiskPaths.run.102
2021-07-31 18:13:10.330 Model RiskPaths
2021-07-31 18:13:10.339 Model run 102 Default
2021-07-31 18:13:10.401 Packed C:\go_ws\models\home\out\download\RiskPaths.run.102.zip
2021-07-31 18:13:10.402 Done.
As result oms
service does create:
- download archive, for example:
RiskPaths.run.102.zip
- model run
.csv
files for parameters and output tables inRiskPaths.run.102
folder - model run
.json
metadata files
Method:
GET /api/download/log/file/:name
Arguments:
:name - (required) download log file name, for example: `RiskPaths.run.102.ready.download.log`
Call example from browser:
http://localhost:4040/api/download/log/file/RiskPaths.run.102.ready.download.log
Return example:
{
"Status": "ready",
"Kind": "run",
"ModelDigest": "0f71660ba32bc002282c995e4552a14a",
"RunDigest": "4354632979ec90f48441ccdeb0ca803b",
"WorksetName": "",
"IsFolder": true,
"Folder": "RiskPaths.run.102",
"IsZip": true,
"ZipFileName": "RiskPaths.run.102.zip",
"ZipModTime": 1627769590401,
"ZipSize": 16525,
"LogFileName": "RiskPaths.run.102.ready.download.log",
"LogNsTime": 1627769590402950000,
"Lines": [
"2021-07-31 18:13:10.293 Download of: RiskPaths.run.102 ",
"--------------- ",
"Model Name : RiskPaths ",
"Model Version : 3.0.0.0 2021-07-16 13:14:14.451 ",
"Model Digest : 0f71660ba32bc002282c995e4552a14a ",
"Run Name : Default ",
"Run Version : 102 2021-07-16 13:14:22.227 ",
"Run Digest : 4354632979ec90f48441ccdeb0ca803b ",
"Folder : RiskPaths.run.102 ",
"--------------- ",
"2021-07-31 18:13:10.293 delete: RiskPaths.run.102.ready.download.log ",
"2021-07-31 18:13:10.293 delete: RiskPaths.run.102.error.download.log ",
"2021-07-31 18:13:10.293 delete: RiskPaths.run.102.zip ",
"2021-07-31 18:13:10.293 delete: RiskPaths.run.102 ",
"2021-07-31 18:13:10.330 Model RiskPaths ",
"2021-07-31 18:13:10.339 Model run 102 Default ",
"2021-07-31 18:13:10.401 Packed C:\\go_ws\\models\\home\\out\\download\\RiskPaths.run.102.zip ",
"2021-07-31 18:13:10.402 Done. ",
""
]
}