Miosa.Computer.AutoStop (Miosa v1.0.1)

Copy Markdown View Source

Read and update idle-timeout config for a computer.

Maps to GET /computers/:id/auto-stop and PATCH /computers/:id/auto-stop.

Summary

Functions

Return the current auto-stop configuration (GET /computers/:computer_id/auto-stop).

Set the idle timeout in seconds (PATCH /computers/:computer_id/auto-stop).

Functions

get(client, computer_id)

Return the current auto-stop configuration (GET /computers/:computer_id/auto-stop).

update(client, computer_id, seconds)

Set the idle timeout in seconds (PATCH /computers/:computer_id/auto-stop).

Pass 0 to disable auto-stop entirely.