Files
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

22 lines
564 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Servers;
use Pterodactyl\Data\ServerState;
use Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException;
use Pterodactyl\Models\Server;
interface ReadsServerState
{
/**
* Return the live state and resource usage of a server. Readings are shared
* with the client resources endpoint and cached for up to 20 seconds, so
* repeated callers do not flood Wings.
*
* @throws DaemonConnectionException
*/
public function read(Server $server): ServerState;
}