19declare(strict_types=1);
28use Symfony\Component\Console\Input\InputInterface;
29use Symfony\Component\Console\Output\OutputInterface;
45 $this->agent_finder = $agent_finder;
50 $this->setDescription(
"Collect and show status information about the installation.");
55 protected function execute(InputInterface $input, OutputInterface $output):
int
59 $output->write($this->
getMetrics($agent)->toYAML() .
"\n");
76 $this->achieveObjective($objective, $environment);
78 $metric = $storage->asMetric();
81 $values = $other->getValue();
86 $values[
"config"] = $config;
Command to output status information about the installation.
execute(InputInterface $input, OutputInterface $output)
__construct(AgentFinder $agent_finder)
A metric is something we can measure about the system.
const STABILITY_CONFIG
The stability of a metric tells how often we expect changes in the metric.
A wrapper around an objective that attempts to achieve the wrapped objective but won't stop the proce...
static bool $might_populate_ini_files_as_well
A agent is some component that performs part of the setup process.
getStatusObjective(Metrics\Storage $storage)
Get the objective to be achieved when status is requested.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait HasAgent
Add this to an Command that has an agent.
getRelevantAgent(InputInterface $input)
configureCommandForPlugins()