MediaWiki REL1_32
|
Public Member Functions | |
clearData () | |
Clear all buffered data from the factory. | |
decrement ( $key) | |
This function creates a 'decrement' StatsdData object. | |
gauge ( $key, $value) | |
This function creates a 'gauge' StatsdData. | |
getData () | |
Return the buffered data from the factory. | |
getDataCount () | |
Return the number of buffered statsd data entries. | |
hasData () | |
Check whether this data factory has any buffered data. | |
increment ( $key) | |
This function creates a 'increment' StatsdData object. | |
produceStatsdData ( $key, $value=1, $metric=StatsdDataInterface::STATSD_METRIC_COUNT) | |
Produce a StatsdDataInterface Object. | |
set ( $key, $value) | |
This function creates a 'set' StatsdData object A "Set" is a count of unique events. | |
setEnabled ( $enabled) | |
Set collection enable status. | |
timing ( $key, $time) | |
This function creates a 'timing' StatsdData. | |
updateCount ( $key, $delta) | |
This function creates a 'updateCount' StatsdData object. | |
Definition at line 10 of file NullStatsdDataFactory.php.
NullStatsdDataFactory::clearData | ( | ) |
Clear all buffered data from the factory.
Implements IBufferingStatsdDataFactory.
Definition at line 116 of file NullStatsdDataFactory.php.
NullStatsdDataFactory::decrement | ( | $key | ) |
This function creates a 'decrement' StatsdData object.
string | array | $key | The metric(s) to decrement. |
Definition at line 70 of file NullStatsdDataFactory.php.
NullStatsdDataFactory::gauge | ( | $key, | |
$value | |||
) |
This function creates a 'gauge' StatsdData.
string | array | $key | The metric(s) to set. |
float | $value | The value for the stats. |
Definition at line 27 of file NullStatsdDataFactory.php.
NullStatsdDataFactory::getData | ( | ) |
Return the buffered data from the factory.
Implements IBufferingStatsdDataFactory.
Definition at line 112 of file NullStatsdDataFactory.php.
NullStatsdDataFactory::getDataCount | ( | ) |
Return the number of buffered statsd data entries.
Implements IBufferingStatsdDataFactory.
Definition at line 120 of file NullStatsdDataFactory.php.
NullStatsdDataFactory::hasData | ( | ) |
Check whether this data factory has any buffered data.
Implements IBufferingStatsdDataFactory.
Definition at line 108 of file NullStatsdDataFactory.php.
NullStatsdDataFactory::increment | ( | $key | ) |
This function creates a 'increment' StatsdData object.
string | array | $key | The metric(s) to increment. |
Definition at line 58 of file NullStatsdDataFactory.php.
NullStatsdDataFactory::produceStatsdData | ( | $key, | |
$value = 1 , |
|||
$metric = StatsdDataInterface::STATSD_METRIC_COUNT |
|||
) |
Produce a StatsdDataInterface Object.
string | $key | The key of the metric |
int | $value | The amount to increment/decrement each metric by. |
string | $metric | The metric type ("c" for count, "ms" for timing, "g" for gauge, "s" for set) |
Definition at line 96 of file NullStatsdDataFactory.php.
References $value.
NullStatsdDataFactory::set | ( | $key, | |
$value | |||
) |
This function creates a 'set' StatsdData object A "Set" is a count of unique events.
This data type acts like a counter, but supports counting of unique occurrences of values between flushes. The backend receives the number of unique events that happened since the last flush.
The reference use case involved tracking the number of active and logged in users by sending the current userId of a user with each request with a key of "uniques" (or similar).
string | array | $key | The metric(s) to set. |
float | $value | The value for the stats. |
Definition at line 47 of file NullStatsdDataFactory.php.
NullStatsdDataFactory::setEnabled | ( | $enabled | ) |
Set collection enable status.
bool | $enabled | Will collection be enabled? |
Implements IBufferingStatsdDataFactory.
Definition at line 124 of file NullStatsdDataFactory.php.
NullStatsdDataFactory::timing | ( | $key, | |
$time | |||
) |
This function creates a 'timing' StatsdData.
string | array | $key | The metric(s) to set. |
float | $time | The elapsed time (ms) to log |
Definition at line 18 of file NullStatsdDataFactory.php.
NullStatsdDataFactory::updateCount | ( | $key, | |
$delta | |||
) |
This function creates a 'updateCount' StatsdData object.
string | array | $key | The metric(s) to decrement. |
int | $delta | The delta to add to the each metric |
Definition at line 82 of file NullStatsdDataFactory.php.