mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
22 lines
564 B
PHP
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;
|
|
}
|