/chargeback/cb/app?gte={date}<e={date}
Gets chargeback reports by application type. Gives the count of all applications in all queues for all users across all clusters.
Compatibility
This endpoint is available on Unravel 4.5.1.0+. If you're using an older version of Unravel, see /search/cb/appt?from={date}&to={date}.
Request
GET http://unravel-host
:3000/api/v1/chargeback/cb/app?gte={date}<e={date}
Path parameters
None.
Query parameters
Required parameters are highlighted
.
Name | Type | Description |
---|---|---|
| string | Start date. Format: |
| string | End date. Format: |
Response body
The response body contains one array per application type. The table below describes the contents of the array.
Name | Type | Description |
---|---|---|
| integer | Memory usage in seconds. |
| integer | Application count. |
| string | Application type ( |
| integer | Vcore usage in seconds. |
Examples
Request:
curl -X GET "http://myserver.com:3000/api/v1/chargeback/cb/appt?gte=2019-01-02<e=2019-04-02" -H "accept: application/json" -H "Authorization: JWT token
"
Response body:
[ { "type": "mr", "appCount": 39, "cpuHours": "4.14", "memoryHours": "2Y 11M 3D 14h 27m 33s" }, { "type": "tez", "appCount": 39, "cpuHours": "87.16", "memoryHours": "82Y 8M 26D 9h 14m 12s" }, { "type": "spark", "appCount": 29, "cpuHours": "2.14", "memoryHours": "5M 13D 5h 9m 26s" } ]