GET /reports/data/diskusage/get_latest_reports?task_name=topx_report
New API: GET /ondemand_reports/latest_and_success_metadata?report_key=topx_report
Gets details of the latest report based on the report key.
Request
GET http://<unravel-host>
:3000/api/v1/latest_and_success_metadata?report_key={report_key}
Path parameters
None.
Query parameters
Required parameters are highlighted
.
Name | Type | Description |
---|---|---|
| string | Report type Metric ID. The valid values are as follows:
|
Examples
Request:
curl -X GET "http://myserver.com:3000/api/v1/ondemand_reports/latest_and_success_metadata?report_key=topx_report" -H "accept: application/json" -H "Authorization: JWT <token>
"
Response:
{ "report_latest_status": "SUCCESS", "entity_latest_id": "140625387997278", "report_latest_success_status": "SUCCESS", "entity_latest_success_id": "140625387997278", "failure_message": "", "success_rpt_created_at": "2022-03-30T06:52:31.000Z", "success_rpt_updated_at": "2022-03-30T06:52:32.000Z" }