public function testSendSeries()
 {
     $series = new Series();
     $metric1 = new Metric('test.metric.name', array(array(time(), 20), array(time() - 5, 15), array(time() - 10, 10)));
     $metric1->setType(Metric::TYPE_GAUGE)->setHost('host1.com')->addTag('test', 'tag');
     $series->addMetric($metric1);
     $metric2 = new Metric('test.metric2.name', array(array(time(), 18), array(time() - 1, 21), array(time() - 2, 12)));
     $metric2->setType(Metric::TYPE_COUNTER);
     $series->addMetric($metric2);
     $this->client->sendSeries($series);
 }
 /**
  * @expectedException \Bayer\DataDogClient\Series\Metric\InvalidTypeException
  */
 public function testInvalidMetricTypeThrowsException()
 {
     $metric = new Metric('test.metric.name', array(20));
     $metric->setType('foo');
 }