21use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
22use Liuggio\StatsdClient\Entity\StatsdDataInterface;
50 $this->prefix = rtrim(
$prefix,
'.' );
58 return $this->prefix .
'.' . $key;
69 public function set( $key,
$value ) {
82 return $this->factory->updateCount( $this->
addPrefixToKey( $key ), $delta );
88 $metric = StatsdDataInterface::STATSD_METRIC_COUNT
90 return $this->factory->produceStatsdData(
Proxy to prefix metric keys sent to a StatsdDataFactoryInterface.
StatsdDataFactoryInterface $factory
__construct(StatsdDataFactoryInterface $factory, $prefix)
updateCount( $key, $delta)
produceStatsdData( $key, $value=1, $metric=StatsdDataInterface::STATSD_METRIC_COUNT)
see documentation in includes Linker php for Linker::makeImageLink & $time