feat(v5): show server stale status and coold logs

This commit is contained in:
Andras Bacsai committed 2026-06-22 11:14:13 +02:00
1 parent 0914052b56
commit 75cbcad240
9 files changed
+416 -45

No files matched your search

+10
View File
@@ -126,6 +126,16 @@ class FluxClient
return $this->output($payload, 'Firewall rule removed.');
}
public function cooldLogs(string $hostId, int $tail = 200): string
{
$payload = $this->dispatch($hostId, [
'type' => 'coold.logs',
'tail' => max(1, min($tail, 1000)),
]);
return $this->output($payload, 'No coold logs returned.');
}
/**
* @param array<string, mixed> $command
* @return array<string, mixed>