Skip to main content

Snowflake Documentation

GET /reports/data/diskusage/get_latest_success_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

report_key

string

Report type

Metric ID. The valid values are as follows:

  • cluster_discovery_task

  • small_files_report

  • topx_report

  • capacity_prediction_task

  • cloud_reports_task

  • services_compatibility_task

  • executive_kpi

  • queue_analysis_task

  • cluster_app_param_task

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"
}