Model/HealthModel.php
public function reportIncidents(OutputInterface $output = null)
    {
        if (!$this->integration) {
            return;
        }
        if ($this->incidents && !empty($this->settings['statuspage_component_id'])) {
            $name = 'Processing Delays';
            $body = [];
            foreach ($this->incidents as $incident) {
                if (!empty($incident['body'])) {
                    $body[] = $incident['body'];
                }
            }
            $body = implode(' ', $body);
            if ($output && $body) {
                $output->writeln(
                    '<info>'.'Notifying Statuspage.io'.'</info>'
                );
            }
            $this->integration->setComponentStatus('monitoring', 'degraded_performance', $name, $body);
        } else {
            $this->integration->setComponentStatus('resolved', 'operational', null, 'Application is healthy');
        }
    }
public function reportIncidents(OutputInterface $output = null)
    {
        if (!$this->integration) {
            return;
        }
        if ($this->incidents && !empty($this->settings['statuspage_component_id'])) {
            $name = 'Processing Delays';
            $body = [];
            foreach ($this->incidents as $incident) {
                if (!empty($incident['body'])) {
                    $body[] = $incident['body'];
                }
            }
            $body = implode(' ', $body);
            if ($output && $body) {
                $output->writeln(
                    '<info>'.'Notifying Statuspage.io'.'</info>'
                );
            }
            $this->integration->setComponentStatus('monitoring', 'degraded_performance', $name, $body);
        } else {
            $this->integration->setComponentStatus('resolved', 'operational', null, 'Application is healthy');
        }
    }
public function reportIncidents ( OutputInterface $ output = null ) { if ( ! $ this -> integration ) { return ; } if ( $ this -> incidents && ! empty ( $ this -> settings [ 'statuspage_component_id' ] ) ) { $ name = 'Processing Delays' ; $ body = [ ] ; foreach ( $ this -> incidents as $ incident ) { if ( ! empty ( $ incident [ 'body' ] ) ) { $ body [ ] = $ incident [ 'body' ] ; } } $ body = implode ( ' ' , $ body ) ; if ( $ output && $ body ) { $ output -> writeln ( '<info>' . 'Notifying Statuspage.io' . '</info>' ) ; } $ this -> integration -> setComponentStatus ( 'monitoring' , 'degraded_performance' , $ name , $ body ) ; } else { $ this -> integration -> setComponentStatus ( 'resolved' , 'operational' , null , 'Application is healthy' ) ; } }
If Statuspage is enabled and configured, report incidents.

@param OutputInterface|null $output
If Statuspage is enabled and configured report incidents .