Skip to main content

Home

GET /reports/data/diskusage/get_latest_success_reports?task_name=queue_analysis_task
New API: /ondemand_reports/latest_and_success_metadata?report_key=queue_analysis_task

Gives details of the latest reports depending on the report key.

Request
GET http://<unravel-host>:3000/api/v1/ondemand_reports/latest_and_success_metadata?report_key=<report_key>
Path parameters

None.

Query parameters

Required parameters are highlighted.

Name

Type

Description

report_key

String

Report ID

Examples

Request:

curl -X GET "http://myserver.com:3000/api/v1/ondemand_reports/latest_and_success_metadata?report_key=cluster_discovery_task" -H "accept: application/json" -H  "Authorization: JWT <token>"

Response:

{
   "report_latest_status": "SUCCESS",
   "entity_latest_id": "140625388014956",
   "report_latest_success_status": "SUCCESS",
   "entity_latest_success_id": "140625388014956",
   "failure_message": "",
   "success_rpt_created_at": "2022-03-30T06:38:29.000Z",
   "success_rpt_updated_at": "2022-03-30T06:38:41.000Z"
}