Пример #1
0
 public function report(\ScottRobertson\Scrutiny\Service\Base $service)
 {
     $this->pushover->title = $service->getMessageFromEvent();
     $this->pushover->message = $service->getName() . ' returned ' . $service->getData('code');
     $this->pushover->timestamp = $service->getTime();
     $this->pushover->url = $service->getData('url');
     return $this->pushover->push($this->user);
 }
Пример #2
0
 public function report(\ScottRobertson\Scrutiny\Service\Base $service)
 {
     return $this->post(array('title' => $service->getMessageFromEvent(), 'message' => $service->getName() . ' returned ' . $service->getData('code'), 'timestamp' => $service->getTime(), 'url' => $service->getData('url')));
 }