/chargeback/cb/appt/user?gte={date}<e={date}
Gets chargeback reports by user.
Compatibility
This endpoint is available on Unravel 4.5.1.0+. If you're using an older version of Unravel, see /search/cb/appt/user?from={date}&to={date}.
Request
GET http://unravel-host
:3000/api/v1/chargeback/cb/appt/user?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 | Application count. | ||||
| string | Application type ( | ||||
| array | Array of users or queues (depending on command) containing:
|
Examples
Request:
curl -X GET "http://myserver.com:3000/api/v1/chargeback/cb/appt/user?gte=2019-01-02<e=2019-04-02" -H "accept: application/json" -H "Authorization: JWT token
"
Response body:
[ { "type": "mr", "appCount": 37, "cpuHours": "3.66", "user": "hdfs", "memoryHours": "2Y 8M 8D 16h 44m 45s" }, { "type": "mr", "appCount": 2, "cpuHours": "0.48", "user": "hbase", "memoryHours": "2M 24D 21h 42m 48s" }, { "type": "tez", "appCount": 38, "cpuHours": "87.14", "user": "hdfs", "memoryHours": "82Y 8M 18D 13h 30m 38s" }, { "type": "tez", "appCount": 1, "cpuHours": "0.02", "user": "unravel", "memoryHours": "7D 19h 43m 34s" }, { "type": "spark", "appCount": 24, "cpuHours": "1.60", "user": "hdfs", "memoryHours": "3M 27D 22h 4m 31s" }, { "type": "spark", "appCount": 3, "cpuHours": "0.52", "user": "user1", "memoryHours": "1M 14D 10h 47m 48s" }, { "type": "spark", "appCount": 2, "cpuHours": "0.01", "user": "unravel", "memoryHours": "20h 17m 7s" } ]