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

increment() public method

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

Usage Example

Exemplo n.º 1
0
 public function testCollectIncrement()
 {
     $expectedArgs = array('points' => array(array('measurement' => 'series-name', 'fields' => array('value' => 1))), 'tags' => array());
     $this->client->expects($this->once())->method('mark')->with($expectedArgs);
     $this->collector->increment('series-name');
     $this->collector->flush();
 }
All Usage Examples Of Beberlei\Metrics\Collector\InfluxDB::increment