| category | OSS |
|---|---|
| package | OSS_StatsD |
| copyright | Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland |
| license | New BSD License |
| link | https://github.com/etsy/statsd/blob/master/examples/php-example.php |
__construct(string $host, int $port, bool $enabled)
stringThe StatsD host
intThe StatsD port
boolWhether we should sent updates or not
decrement(string | array $stats, float | \1 $sampleRate) : boolean
stringarrayThe metric(s) to decrement.
float\1the rate (0-1) for sampling.
booleanincrement(string | array $stats, float | \1 $sampleRate) : boolean
stringarrayThe metric(s) to increment.
float\1the rate (0-1) for sampling.
booleanisEnabled() : bool
boolsend($data, $sampleRate)
timing(string $stat, float $time, float | \1 $sampleRate)
stringThe metric to in log timing info for.
floatThe ellapsed time (ms) to log
float\1the rate (0-1) for sampling.
updateStats(string | array $stats, int | \1 $delta, float | \1 $sampleRate) : boolean
stringarrayThe metric(s) to update. Should be either a string or array of metrics.
int\1The amount to increment/decrement each metric by.
float\1the rate (0-1) for sampling.
boolean$_enabled : bool
$_host : string
$_port : int