|
MediaWiki
master
|
A statsd client that applies the sampling rate to the data items before sending them. More...


Public Member Functions | |
| appendSampleRate ($data, $sampleRate=1) | |
| Sets sampling rate for all items in $data. More... | |
| send ($data, $sampleRate=1) | |
Protected Member Functions | |
| sampleData ($data) | |
| Throw away some of the data according to the sample rate. More... | |
| throwException (Exception $exception) | |
A statsd client that applies the sampling rate to the data items before sending them.
Definition at line 32 of file SamplingStatsdClient.php.
| SamplingStatsdClient::appendSampleRate | ( | $data, | |
$sampleRate = 1 |
|||
| ) |
Sets sampling rate for all items in $data.
The sample rate specified in a StatsdData entity overrides the sample rate specified here.
Definition at line 39 of file SamplingStatsdClient.php.
References use.
Referenced by send().
|
protected |
Throw away some of the data according to the sample rate.
| StatsdDataInterface[] | $data |
| LogicException |
Definition at line 113 of file SamplingStatsdClient.php.
References as.
Referenced by send().
| SamplingStatsdClient::send | ( | $data, | |
$sampleRate = 1 |
|||
| ) |
Definition at line 62 of file SamplingStatsdClient.php.
References $e, appendSampleRate(), as, sampleData(), and throwException().
|
protected |
Definition at line 134 of file SamplingStatsdClient.php.
Referenced by send().