3use Liuggio\StatsdClient\Entity\StatsdData;
4use Liuggio\StatsdClient\Entity\StatsdDataInterface;
5use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
48 public function set( $key,
$value ) {
100 $metric = StatsdDataInterface::STATSD_METRIC_COUNT
102 $data =
new StatsdData();
103 $data->setKey( $key );
104 $data->setValue(
$value );
105 $data->setMetric( $metric );
decrement( $key)
This function creates a 'decrement' StatsdData object.
gauge( $key, $value)
This function creates a 'gauge' StatsdData.
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 data from the factory.
timing( $key, $time)
This function creates a 'timing' StatsdData.
hasData()
Check whether this data factory has any data.
updateCount( $key, $delta)
This function creates a 'updateCount' StatsdData object.
see documentation in includes Linker php for Linker::makeImageLink & $time
MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.