10use Symfony\Component\Console\Command\Command;
11use Symfony\Component\Console\Input\InputInterface;
12use Symfony\Component\Console\Output\OutputInterface;
28 $this->agent_finder = $agent_finder;
33 $this->setDescription(
"Collect and show status information about the installation.");
38 public function execute(InputInterface $input, OutputInterface $output)
42 $output->write($this->
getMetrics($agent)->toYAML() .
"\n");
57 $this->achieveObjective($objective, $environment);
59 $metric = $storage->asMetric();
62 $values = $other->getValue();
An exception for terminatinating execution or to throw for unit testing.
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 $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()