Skip to main content

Home

GET /reports/queueanalysis/get_latest_report_by_queue_name
New API: GET /ondemand_reports/get_latest_report_by_queue_name

Gets report by queue name.

Request
GET http://<unravel-host>:3000/api/v1/ondemand_reports/get_latest_report_by_queue_name?entity_id={entity_id}&queue_name={queue_name}
Path parameters

None.

Query parameters

Required parameters are highlighted.

Name

Type

Description

entity_id

string

Report ID. For example, 140501218204318

queue_name

string

Name of the queue.

Examples

Request:

curl -X GET "http://myserver.com:3000/api/v1/ondemand_reports/get_latest_report_by_queue_name?entity_id=140501218204318&amp;queue_name=root.DataAnalyst" -H "accept: application/json" -H  "Authorization: JWT <token>"

Response:

{
   "averages": {
       "MB": {
           "pendMB": 24682,
           "stdyMB": 7958,
           "availMB": 0,
           "allocMB": 426,
           "rsrvMB": 0,
           "fairMB": 1560
       },
       "VCores": {
           "rsrvVc": 0,
           "fairVc": 0,
           "pendVc": 24,
           "stdyVc": 2,
           "availVc": 0,
           "allocVc": 0
       },
       "Disk": {
           "fairDsk": 0,
           "rsrvDsk": 0,
           "availDsk": 0,
           "stdyDsk": 0,
           "pendDsk": 0,
           "allocDsk": 0
       },
       "Apps": {
           "appsFail": 0,
           "appsKill": 0,
           "appsRun": 0,
           "appsCmpl": 0,
           "appsPend": 0,
           "appsSubm": 0
       }
   },
   "name": "root.DataAnalyst",
   "metrics": {
       "MB": {
           "pendMB": [
               0,
               0
           ]
       }
   }
}