Skip to content

Commit

Permalink
Merge pull request #129 from open-runtimes/feat-deprecate-status
Browse files Browse the repository at this point in the history
Feat: Deprecate status
  • Loading branch information
christyjacob4 authored Nov 22, 2024
2 parents a6d80e2 + 1f735e0 commit 21b71dd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 26 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
40 changes: 20 additions & 20 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 21b71dd

Please sign in to comment.