Skip to content

Commit

Permalink
Deprecate status, always pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Meldiron committed Nov 21, 2024
1 parent a6d80e2 commit 3a3c933
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/http.php
Original file line number Diff line number Diff line change
Expand Up @@ -1379,16 +1379,12 @@ function (string $runtimeId, ?string $payload, string $path, string $method, mix
->inject('response')
->action(function (Table $statsHost, Table $statsContainers, Response $response) {
$output = [
'status' => 'pass',
'runtimes' => []
'runtimes' => [],
'usage' => $statsHost->get('host', 'usage') ?? null
];

$hostUsage = $statsHost->get('host', 'usage') ?? null;
$output['usage'] = $hostUsage;

foreach ($statsContainers as $hostname => $stat) {
$output['runtimes'][$hostname] = [
'status' => 'pass',
'usage' => $stat['usage'] ?? null
];
}
Expand Down

0 comments on commit 3a3c933

Please sign in to comment.