MediaWiki REL1_34
|
Proxy to prefix metric keys sent to a StatsdDataFactoryInterface. More...
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) | |
Private Member Functions | |
addPrefixToKey ( $key) | |
Private Attributes | |
StatsdDataFactoryInterface | $factory |
string | $prefix |
Proxy to prefix metric keys sent to a StatsdDataFactoryInterface.
Definition at line 29 of file PrefixingStatsdDataFactoryProxy.php.
PrefixingStatsdDataFactoryProxy::__construct | ( | StatsdDataFactoryInterface | $factory, |
$prefix ) |
StatsdDataFactoryInterface | $factory | |
string | $prefix |
Definition at line 45 of file PrefixingStatsdDataFactoryProxy.php.
|
private |
string | $key |
Definition at line 57 of file PrefixingStatsdDataFactoryProxy.php.
Referenced by decrement(), gauge(), increment(), produceStatsdData(), set(), timing(), and updateCount().
PrefixingStatsdDataFactoryProxy::decrement | ( | $key | ) |
Definition at line 77 of file PrefixingStatsdDataFactoryProxy.php.
References addPrefixToKey().
PrefixingStatsdDataFactoryProxy::gauge | ( | $key, | |
$value ) |
Definition at line 65 of file PrefixingStatsdDataFactoryProxy.php.
References addPrefixToKey().
PrefixingStatsdDataFactoryProxy::increment | ( | $key | ) |
Definition at line 73 of file PrefixingStatsdDataFactoryProxy.php.
References addPrefixToKey().
PrefixingStatsdDataFactoryProxy::produceStatsdData | ( | $key, | |
$value = 1, | |||
$metric = StatsdDataInterface::STATSD_METRIC_COUNT ) |
Definition at line 85 of file PrefixingStatsdDataFactoryProxy.php.
References addPrefixToKey().
PrefixingStatsdDataFactoryProxy::set | ( | $key, | |
$value ) |
Definition at line 69 of file PrefixingStatsdDataFactoryProxy.php.
References addPrefixToKey().
PrefixingStatsdDataFactoryProxy::timing | ( | $key, | |
$time ) |
Definition at line 61 of file PrefixingStatsdDataFactoryProxy.php.
References addPrefixToKey().
PrefixingStatsdDataFactoryProxy::updateCount | ( | $key, | |
$delta ) |
Definition at line 81 of file PrefixingStatsdDataFactoryProxy.php.
References addPrefixToKey().
|
private |
Definition at line 39 of file PrefixingStatsdDataFactoryProxy.php.
Referenced by __construct().
|
private |
Definition at line 34 of file PrefixingStatsdDataFactoryProxy.php.
Referenced by __construct().