You are here

protected function SanityCheckCommand::execute in MongoDB 8.2

File

modules/mongodb_watchdog/src/Command/SanityCheckCommand.php, line 67

Class

SanityCheckCommand
Class SanityCheckCommand provides the mongodb:watchdog:sanitycheck command.

Namespace

Drupal\mongodb_watchdog\Command

Code

protected function execute(InputInterface $input, OutputInterface $output) : void {
  $buckets = $this->sanityCheck
    ->buildCollectionstats();
  $this
    ->getIo()
    ->writeln($this->yaml
    ->encode($buckets));
}