Save report snapshot
Builds a report and saves it as the snapshot the next report compares against. Protection: token.
Authorizations
The token you start the server with: homebutler serve --token <token>, or web.token in the config file. Send it as Authorization: Bearer <token>. When the server has a token, every /api/ route except the CORS preflight requires it, reads included.
Query parameters
The name of a remote server from List servers. homebutler runs the command on it over SSH and returns its answer. Leave it out, name the local server, or name a server that is not in the config, to read this machine.
Response
200 · application/jsonThe report that was just built, with snapshot_saved set to true. The example is shortened.
The report plus a count of each list, for widgets that cannot take the length of an array.
The version of this document's shape. It is 1.
When the report was built, RFC 3339 in UTC.
The name of the server the report is about.
true when there was no snapshot to compare against.
true when this report was saved as the new snapshot.
The timestamp of the snapshot this report was compared with. Absent for a baseline.
Running containers. null when Docker did not answer.
Stopped containers. null when Docker did not answer.
Ports open to the network. null when ports could not be listed.
One sentence per measured area.
Problems found now.
Differences from the snapshot.
Next steps, each with the command that runs it.
The collectors that failed. A count is trustworthy only when its collector is absent here.
Problems that did not stop the report, such as an unreadable snapshot.
The length of each list.