MediaWiki REL1_37
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)
 

Private Member Functions

 addPrefixToKey ( $key)
 

Private Attributes

StatsdDataFactoryInterface $factory
 
string $prefix
 

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.

References $factory, and $prefix.

Member Function Documentation

◆ addPrefixToKey()

PrefixingStatsdDataFactoryProxy::addPrefixToKey (   $key)
private
Parameters
string$key
Returns
string

Definition at line 57 of file PrefixingStatsdDataFactoryProxy.php.

Referenced by decrement(), gauge(), increment(), produceStatsdData(), set(), timing(), and updateCount().

◆ decrement()

PrefixingStatsdDataFactoryProxy::decrement (   $key)

Definition at line 77 of file PrefixingStatsdDataFactoryProxy.php.

References addPrefixToKey().

◆ gauge()

PrefixingStatsdDataFactoryProxy::gauge (   $key,
  $value 
)

Definition at line 65 of file PrefixingStatsdDataFactoryProxy.php.

References addPrefixToKey().

◆ increment()

PrefixingStatsdDataFactoryProxy::increment (   $key)

Definition at line 73 of file PrefixingStatsdDataFactoryProxy.php.

References addPrefixToKey().

◆ produceStatsdData()

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

Definition at line 85 of file PrefixingStatsdDataFactoryProxy.php.

References addPrefixToKey().

◆ set()

PrefixingStatsdDataFactoryProxy::set (   $key,
  $value 
)

Definition at line 69 of file PrefixingStatsdDataFactoryProxy.php.

References addPrefixToKey().

◆ timing()

PrefixingStatsdDataFactoryProxy::timing (   $key,
  $time 
)

Definition at line 61 of file PrefixingStatsdDataFactoryProxy.php.

References addPrefixToKey().

◆ updateCount()

PrefixingStatsdDataFactoryProxy::updateCount (   $key,
  $delta 
)

Definition at line 81 of file PrefixingStatsdDataFactoryProxy.php.

References addPrefixToKey().

Member Data Documentation

◆ $factory

StatsdDataFactoryInterface PrefixingStatsdDataFactoryProxy::$factory
private

Definition at line 39 of file PrefixingStatsdDataFactoryProxy.php.

Referenced by __construct().

◆ $prefix

string PrefixingStatsdDataFactoryProxy::$prefix
private

Definition at line 34 of file PrefixingStatsdDataFactoryProxy.php.

Referenced by __construct().


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