PHP Interface Beberlei\Metrics\Collector\Collector

Show file Open project: beberlei/metrics Interface Usage Examples

Public Methods

Method Description
decrement ( string $variable ) Decrements a counter.
flush ( ) Sends the metrics to the adapter backend.
increment ( string $variable ) Increments a counter.
measure ( string $variable, integer $value ) Updates a counter by some arbitrary amount.
timing ( string $variable, integer $time ) Records a timing.

Method Details

decrement() public method

Decrements a counter.
public decrement ( string $variable )
$variable string

flush() public method

Sends the metrics to the adapter backend.
public flush ( )

increment() public method

Increments a counter.
public increment ( string $variable )
$variable string

measure() public method

Updates a counter by some arbitrary amount.
public measure ( string $variable, integer $value )
$variable string
$value integer The amount to increment the counter by

timing() public method

Records a timing.
public timing ( string $variable, integer $time )
$variable string
$time integer The duration of the timing in milliseconds