Aquila
Fleets

GetFleetMetrics

POST
/fleets.v1.FleetService/GetFleetMetrics

GetFleetMetrics returns players, capacity and the charted game metrics over a window.

Authorization

apiKey
headerAuthorizationBearer <token>

An organization API key, created in the console.

Request Body

application/json
  1. body
fleet*
window?window

1h, 1d or 1w. Defaults to 1h.

Value in"""1h""1d""1w"

Response Body

Success

application/json
  1. response
series?array<>

Players and capacity first, then the fleet's charts in order. A metric the servers stopped serving comes back with no points.

available?array<string>

Every game metric the fleet's servers serve, for picking charts.

unscrapedServers?unscraped_servers

Servers whose last scrape failed: no answer, over 100 series, or over 64 KiB.

Formatint32
enabled?enabled

False when metrics are not available in the fleet's zone.

Example Request
curl -X POST 'https://api.aquilahosting.com/fleets.v1.FleetService/GetFleetMetrics' \  -H 'Content-Type: application/json' \  -d '{  "fleet": {}}'
Example Response
{  "series": [    {      "name": "string",      "points": [        {          "time": "2023-01-15T01:30:15.01Z",          "value": 0.1        }      ]    }  ],  "available": [    "string"  ],  "unscrapedServers": 0,  "enabled": true}