public function event($title, $text, $type = Event::INFO, array $tags = array(), $timestamp = null)
    {
        try {
            $this->sendEvent($this->eventFactory->event($title, $text, $type, $tags, $timestamp));
        } catch (\Exception $exception) {
            $this->logException($exception);
        }

        return $this;
    }
public function event($title, $text, $type = Event::INFO, array $tags = array(), $timestamp = null)
    {
        try {
            $this->sendEvent($this->eventFactory->event($title, $text, $type, $tags, $timestamp));
        } catch (\Exception $exception) {
            $this->logException($exception);
        }

        return $this;
    }
public function event ( $ title , $ text , $ type = Event :: INFO , array $ tags = array ( ) , $ timestamp = null ) { try { $ this -> sendEvent ( $ this -> eventFactory -> event ( $ title , $ text , $ type , $ tags , $ timestamp ) ) ; } catch ( \ Exception $ exception ) { $ this -> logException ( $ exception ) ; } return $ this ; }
Sends an event

@param string $title     Event title
@param string $text      Event text description
@param string $type      Event type
@param array  $tags      Event tags
@param null   $timestamp Event timestamp, null for now

@return $this
Sends an event