MediaWiki REL1_39
PrefixingStatsdDataFactoryProxy Class Reference

Proxy to prefix metric keys sent to a StatsdDataFactoryInterface. More...

Inheritance diagram for PrefixingStatsdDataFactoryProxy:
Collaboration diagram for PrefixingStatsdDataFactoryProxy:

Public Member Functions

 __construct (StatsdDataFactoryInterface $factory, $prefix)
 
 decrement ( $key)
 
 gauge ( $key, $value)
 
 increment ( $key)
 
 produceStatsdData ( $key, $value=1, $metric=StatsdDataInterface::STATSD_METRIC_COUNT)
 
 set ( $key, $value)
 
 timing ( $key, $time)
 
 updateCount ( $key, $delta)
 

Detailed Description

Proxy to prefix metric keys sent to a StatsdDataFactoryInterface.

Since
1.32

Definition at line 29 of file PrefixingStatsdDataFactoryProxy.php.

Constructor & Destructor Documentation

◆ __construct()

PrefixingStatsdDataFactoryProxy::__construct ( StatsdDataFactoryInterface $factory,
$prefix )
Parameters
StatsdDataFactoryInterface$factory
string$prefix

Definition at line 45 of file PrefixingStatsdDataFactoryProxy.php.

Member Function Documentation

◆ decrement()

PrefixingStatsdDataFactoryProxy::decrement ( $key)

Definition at line 77 of file PrefixingStatsdDataFactoryProxy.php.

◆ gauge()

PrefixingStatsdDataFactoryProxy::gauge ( $key,
$value )

Definition at line 65 of file PrefixingStatsdDataFactoryProxy.php.

◆ increment()

PrefixingStatsdDataFactoryProxy::increment ( $key)

Definition at line 73 of file PrefixingStatsdDataFactoryProxy.php.

◆ produceStatsdData()

PrefixingStatsdDataFactoryProxy::produceStatsdData ( $key,
$value = 1,
$metric = StatsdDataInterface::STATSD_METRIC_COUNT )

Definition at line 85 of file PrefixingStatsdDataFactoryProxy.php.

◆ set()

PrefixingStatsdDataFactoryProxy::set ( $key,
$value )

Definition at line 69 of file PrefixingStatsdDataFactoryProxy.php.

◆ timing()

PrefixingStatsdDataFactoryProxy::timing ( $key,
$time )

Definition at line 61 of file PrefixingStatsdDataFactoryProxy.php.

◆ updateCount()

PrefixingStatsdDataFactoryProxy::updateCount ( $key,
$delta )

Definition at line 81 of file PrefixingStatsdDataFactoryProxy.php.


The documentation for this class was generated from the following file: