Usages.List
Get usages of target application
HTTP request
GET
https://api.trinity.sosono.ai/v1/apps/{app_id}/usages
Path parameters
Parameters | Description |
---|---|
app_id | string Required. Application Id |
Query parameters
Parameters | Description |
---|---|
start | string Required. Start date in format yyyy-MM-dd . |
end | string Required. End date in format yyyy-MM-dd . |
detail | boolean show details grouped by engine_id |
date | boolean show details grouped by date |
Authorization
Authorization: Bearer <JWT/ST>
Request Header
Content-Type: application/json
Request body
none
Response body
{
"start": "2024-06-27",
"end": "2024-06-28",
"usage": {
"request": 29,
"response": 411,
"service": 10
},
"usage_list": [
{
"date": "2024-06-28",
"count": 1,
"engine_id": "5A22C6DFE641404096876E9928EA1294.hikari",
"request": 0,
"response": 23,
"service": 0
},
{
"date": "2024-06-27",
"count": 1,
"engine_id": "5A22C6DFE641404096876E9928EA1294.turbo",
"request": 22,
"response": 10,
"service": 10
},
{
"date": "2024-06-27",
"count": 1,
"engine_id": "5A22C6DFE641404096876E9928EA1294.express-v3",
"request": 7,
"response": 10,
"service": 0
},
{
"date": "2024-06-27",
"count": 16,
"engine_id": "5A22C6DFE641404096876E9928EA1294.hikari",
"request": 0,
"response": 368,
"service": 0
}
]
}
Fields
Parameters | Description |
---|---|
start | string start date in format yyyy-MM-dd . |
end | string end date in format yyyy-MM-dd . |
usage | []UsageEnergyEntity Total Usage energy. |
usage_list | []UsageListEntity Usage list. |