fleet_sweep
Run a single diagnostic check across a fleet of hosts at once. Identify which are down and which is slowest, using ping, port, or HTTP checks.
Instructions
Run one diagnostic check across a whole fleet of hosts, concurrently.
The signature tool. Answers: "Which of my stores/gateways/servers are down right now, and which is the slowest?" Runs the chosen check on every host (up to 10 at a time) and returns a per-host results table plus an up/down summary.
Args: hosts: List of hostnames/IPs — capped at 50 per call; longer lists are rejected. For check="http", entries may be full URLs or bare hostnames (bare names are checked as https://). check: One of "ping" (2 ICMP probes per host), "port" (single TCP connect), or "http" (GET following redirects). Default "ping". port: Required when check="port": a single TCP port, integer 1..65535, used for every host. Ignored otherwise.
Returns: On success: {"ok": true, "check", "results": [{"host", "up", "latency_ms", "detail": }], "summary": {"up", "down", "total", "worst_latency_host"}}. A host that fails validation or its check counts as down, with the reason in its "detail". On bad input (too many hosts, missing port, unknown check): {"ok": false, "error": "..."}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | ||
| check | No | ping | |
| hosts | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||