/** * Send an event to datadog * * The given values will be used to create a new Event * object which will be sent. * * @param string $text * @param string $title * @param array $options * * @return Client */ public function event($text, $title = '', array $options = array()) { return $this->sendEvent(Factory::buildEvent($text, $title, $options)); }
/** * @expectedException \Bayer\DataDogClient\Factory\InvalidPropertyException */ public function testInvalidOptionThrowsException() { Factory::buildEvent('Dummy event', 'My Event', array('foo' => 'bar')); }