Search endpoints
/search/cb/appt?from={date}&to={date}
Gets chargeback reports per app type and the number of apps in all queues for all users across all clusters.
GET http://unravel-host
:3000/api/v1/search/cb/appt?from={date}&to={date}
None.
Required parameters are highlighted
.
Name | Type | Description |
---|---|---|
| string | Start date. Format: |
| string | End date. Format: |
The response body contains one chargeback report per app type. Each report contains the fields shown in the table below.
Name | Type | Description |
---|---|---|
| integer | Memory usage in seconds. |
| integer | App count. |
| string | App type ( |
| integer | Vcore usage in seconds. |
Request:
curl -X GET "http://myserver.com:3000/api/v1/search/cb/appt?from=1536670860&to=1536757260" -H "accept: application/json" -H "Authorization: JWT token
"
Response body:
{ "cb": [ { "ms": 2324825154, "count": 4332, "v1": "mr", "vs": 1512734 }, { "ms": 298989641, "count": 75, "v1": "spark", "vs": 120404 } ] }
/search/cb/appt/queue
Gets chargeback reports per queue.
GET http://unravel-host
:3000/api/v1/search/cb/appt/queue?from={date}&to={date}
None.
Required parameters are highlighted
.
Name | Type | Description |
---|---|---|
| string | Start date. Format: |
| string | End date. Format: |
The response body contains one chargeback report per queue. Each report contains the fields shown in the table below.
Name | Type | Description |
---|---|---|
| string | App count. |
| string | App type ( |
| array | |
| integer | Memory usage in seconds. |
| integer | App count. |
| string | App type ( |
| integer | Vcore usage in seconds. |
Request:
curl -X GET "http://myserver.com:3000/api/v1/search/cb/appt/queue?from=1536676860&to=1536763260" -H "accept: application/json" -H "Authorization: JWT token
"
Response:
{ "cb": [ { "count": 27, "v1": "mr", "cb": [ { "ms": 1974235, "count": 27, "v2": "root.users.root", "vs": 798 } ] } ] }
/search/cb/appt/user?from={date}&to={date}
Gets chargeback reports by application type for a specific queue.
GET http://unravel-host
:3000/api/v1/search/cb/appt/user?from={date}&to={date}
None.
Required parameters are highlighted
.
Name | Type | Description |
---|---|---|
| string | Start date. Format: |
| string | End date. Format: |
The response body contains one chargeback report per queue. Each report contains the fields shown in the table below.
Name | Type | Description |
---|---|---|
| string | App count. |
| string | App type ( |
| array | |
| integer | Memory usage in seconds. |
| integer | App count. |
| string | App type ( |
| integer | Vcore usage in seconds. |
Request:
curl -X GET "http://myserver.com:3000/api/v1/search/cb/appt/user?from=1536676860&to=1536763260" -H "accept: application/json" -H "Authorization: JWT token
"
Response:
{ "cb": [ { "count": 27, "v1": "mr", "cb": [ { "ms": 1974235, "count": 27, "v2": "root.users.root", "vs": 798 } ] } ] }