3use Liuggio\StatsdClient\Entity\StatsdData;
4use Liuggio\StatsdClient\Entity\StatsdDataInterface;
18 public function timing( $key, $time ) {
27 public function gauge( $key, $value ) {
47 public function set( $key, $value ) {
99 $metric = StatsdDataInterface::STATSD_METRIC_COUNT
101 $data =
new StatsdData();
102 $data->setKey( $key );
103 $data->setValue( $value );
104 $data->setMetric( $metric );
decrement( $key)
This function creates a 'decrement' StatsdData object.
gauge( $key, $value)
This function creates a 'gauge' StatsdData.
clearData()
Clear all buffered data from the factory.
setEnabled( $enabled)
Set collection enable status.
increment( $key)
This function creates a 'increment' StatsdData object.
produceStatsdData( $key, $value=1, $metric=StatsdDataInterface::STATSD_METRIC_COUNT)
Produce a StatsdDataInterface Object.
getData()
Return the buffered data from the factory.
timing( $key, $time)
This function creates a 'timing' StatsdData.
hasData()
Check whether this data factory has any buffered data.
updateCount( $key, $delta)
This function creates a 'updateCount' StatsdData object.
getDataCount()
Return the number of buffered statsd data entries.
MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.