Home

/chargeback/cb/app?gte={date}&lte={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}&lte={date}
Path parameters

None.

Query parameters

Required parameters are highlighted.

Name

Type

Description

gte

string

Start date. Format: YYYY-MM-DD or Unix epoch value.

lte

string

End date. Format: YYYY-MM-DD or Unix epoch value.

Response body

The response body contains one array per application type. The table below describes the contents of the array.

Name

Type

Description

ms

integer

Memory usage in seconds.

count

integer

Application count.

v1

string

Application type (mr, spark).

vs

integer

Vcore usage in seconds.

Examples

Request:

curl -X GET "http://myserver.com:3000/api/v1/chargeback/cb/appt?gte=2019-01-02&lte=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"
  }
]