Esempio n. 1
0
 public function testGetPointsFromNameAndTags()
 {
     $tags = array("host" => "server01");
     $expectedNumberOfPoints = 2;
     $points = $this->resultSet->getPoints('', $tags);
     $this->assertTrue(is_array($points));
     $this->assertCount($expectedNumberOfPoints, $points);
 }
 public function rewind()
 {
     $this->series = new \ArrayIterator($this->resultSet->getSeries());
     $serie = $this->series->current();
     $this->points = new \ArrayIterator($serie ? $serie['values'] : []);
 }