PHP Interface Beberlei\Metrics\Collector\Collector

Afficher le fichier Open project: beberlei/metrics Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

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

flush() public méthode

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

increment() public méthode

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

measure() public méthode

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 méthode

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