Exemple #1
0
 public static function toPlain(Pulse $pulse)
 {
     static::contentType("text/plain");
     $temp = '';
     foreach ($pulse->getHealthchecks() as $healthcheck) {
         $temp .= $healthcheck->getDescription() . ' (' . $healthcheck->getType() . '): ' . self::statusToStr($healthcheck->getStatus()) . PHP_EOL;
     }
     $temp .= PHP_EOL . 'Healthcheck summary: ' . self::statusToStr($pulse->getStatus()) . PHP_EOL;
     static::responseIsPassing($pulse->getStatus());
     return $temp;
 }