Skip to content

Commit

Permalink
Upgarade lib, remove status
Browse files Browse the repository at this point in the history
  • Loading branch information
Meldiron committed Nov 26, 2024
1 parent 584934e commit 3550286
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 34 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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"utopia-php/registry": "0.5.*",
"utopia-php/preloader": "0.2.*",
"utopia-php/system": "0.9.*",
"utopia-php/orchestration": "0.14.*",
"utopia-php/orchestration": "0.17.*",
"appwrite/php-runtimes": "0.16.*"
},
"require-dev": {
Expand Down
54 changes: 27 additions & 27 deletions composer.lock

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

0 comments on commit 3550286

Please sign in to comment.