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)
string
The StatsD host
int
The StatsD port
bool
Whether we should sent updates or not
decrement(string | array $stats, float | \1 $sampleRate) : boolean
string
array
The metric(s) to decrement.
float
\1
the rate (0-1) for sampling.
boolean
increment(string | array $stats, float | \1 $sampleRate) : boolean
string
array
The metric(s) to increment.
float
\1
the rate (0-1) for sampling.
boolean
isEnabled() : bool
bool
send($data, $sampleRate)
timing(string $stat, float $time, float | \1 $sampleRate)
string
The metric to in log timing info for.
float
The ellapsed time (ms) to log
float
\1
the rate (0-1) for sampling.
updateStats(string | array $stats, int | \1 $delta, float | \1 $sampleRate) : boolean
string
array
The metric(s) to update. Should be either a string or array of metrics.
int
\1
The amount to increment/decrement each metric by.
float
\1
the rate (0-1) for sampling.
boolean
$_enabled : bool
$_host : string
$_port : int