MediaWiki master
Wikimedia\Stats\Metrics Namespace Reference

Classes

class  BaseMetric
 Base Metric Implementation V1. More...
 
interface  BaseMetricInterface
 Base Metric Interface. More...
 
class  CounterMetric
 Counter Metric Implementation. More...
 
class  GaugeMetric
 Gauge Metric Implementation. More...
 
class  HistogramMetric
 Histogram Metric Implementation. More...
 
interface  MetricInterface
 Metric Interface. More...
 
class  NullMetric
 Null Metric Implementation. More...
 
class  RunningTimer
 RunningTimer Implementation. More...
 
class  TimingMetric
 Timing Metric Implementation. More...
 

Functions

 __construct ( $baseMetric, $logger)
 
 copyToStatsdAt ( $statsdNamespaces)
 
 fresh ()
 
 getComponent ()
 
 getLabelKeys ()
 
 getName ()
 
 getSampleCount ()
 
 getSampleRate ()
 
 getSamples ()
 
 isHistogram ()
 
 setLabel (string $key, string $value)
 
 setLabels (array $labels)
 
 setSampleRate (float $sampleRate)
 

Variables

trait MetricTrait
 Implementation code common to all metric types.
 

Function Documentation

◆ __construct()

Wikimedia\Stats\Metrics\__construct ( $baseMetric,
$logger )

Definition at line 28 of file MetricTrait.php.

◆ copyToStatsdAt()

Wikimedia\Stats\Metrics\copyToStatsdAt ( $statsdNamespaces)

Definition at line 107 of file MetricTrait.php.

◆ fresh()

Wikimedia\Stats\Metrics\fresh ( )

Definition at line 119 of file MetricTrait.php.

◆ getComponent()

Wikimedia\Stats\Metrics\getComponent ( )

Definition at line 39 of file MetricTrait.php.

◆ getLabelKeys()

Wikimedia\Stats\Metrics\getLabelKeys ( )

Definition at line 71 of file MetricTrait.php.

◆ getName()

Wikimedia\Stats\Metrics\getName ( )

Definition at line 34 of file MetricTrait.php.

◆ getSampleCount()

Wikimedia\Stats\Metrics\getSampleCount ( )

Definition at line 49 of file MetricTrait.php.

◆ getSampleRate()

Wikimedia\Stats\Metrics\getSampleRate ( )

Definition at line 54 of file MetricTrait.php.

◆ getSamples()

Wikimedia\Stats\Metrics\getSamples ( )

Definition at line 44 of file MetricTrait.php.

◆ isHistogram()

Wikimedia\Stats\Metrics\isHistogram ( )

Definition at line 125 of file MetricTrait.php.

◆ setLabel()

Wikimedia\Stats\Metrics\setLabel ( string $key,
string $value )

Definition at line 80 of file MetricTrait.php.

Referenced by Wikimedia\Stats\Metrics\setLabels().

◆ setLabels()

Wikimedia\Stats\Metrics\setLabels ( array $labels)

Definition at line 96 of file MetricTrait.php.

References Wikimedia\Stats\Metrics\setLabel().

◆ setSampleRate()

Wikimedia\Stats\Metrics\setSampleRate ( float $sampleRate)

Definition at line 59 of file MetricTrait.php.

Variable Documentation

◆ MetricTrait

trait Wikimedia::Stats::Metrics\MetricTrait
Initial value:
{
private BaseMetricInterface $baseMetric

Implementation code common to all metric types.

Access: internal
Since
1.43

Definition at line 21 of file MetricTrait.php.