Fleets
GetFleetMetrics
POST
GetFleetMetrics returns players, capacity and the charted game metrics over a window.
apiKeyheader
AuthorizationBearer <token>An organization API key, created in the console.
application/json- body
fleet*window?window1h, 1d or 1w. Defaults to 1h.
Value in
"""1h""1d""1w"Success
application/json- 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_serversServers whose last scrape failed: no answer, over 100 series, or over 64 KiB.
Format
int32enabled?enabledFalse when metrics are not available in the fleet's zone.
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}