Beberlei\Metrics\Collector\InfluxDB::timing PHP Method

timing() public method

public timing ( $variable, $time )
    public function timing($variable, $time)
    {
        $this->data[] = array($variable, $time);
    }

Usage Example

Beispiel #1
0
 public function testCollectTiming()
 {
     $expectedArgs = array('points' => array(array('measurement' => 'series-name', 'fields' => array('value' => 47.11))), 'tags' => array());
     $this->client->expects($this->once())->method('mark')->with($expectedArgs);
     $this->collector->timing('series-name', 47.11);
     $this->collector->flush();
 }
All Usage Examples Of Beberlei\Metrics\Collector\InfluxDB::timing