EricMakesStuff\ServerMonitor\Notifications\Notifier::httpPingUp PHP Method

httpPingUp() public method

public httpPingUp ( HttpPingMonitor $httpPingMonitor )
$httpPingMonitor EricMakesStuff\ServerMonitor\Monitors\HttpPingMonitor
    public function httpPingUp(HttpPingMonitor $httpPingMonitor)
    {
        $this->sendNotification('whenHttpPingUp', "HTTP Ping Success: {$httpPingMonitor->getUrl()}", "HTTP Ping Succeeded for {$httpPingMonitor->getUrl()}. Response Code {$httpPingMonitor->getResponseCode()}.", BaseSender::TYPE_SUCCESS);
    }

Usage Example

 /**
  * @param \EricMakesStuff\ServerMonitor\Events\HttpPingUp $event
  */
 public function whenHttpPingUp(HttpPingUp $event)
 {
     $this->notifier->httpPingUp($event->httpPingMonitor);
 }