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  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 41 of file MetricTrait.php.

◆ copyToStatsdAt()

Wikimedia\Stats\Metrics\copyToStatsdAt ( $statsdNamespaces)

Definition at line 120 of file MetricTrait.php.

◆ fresh()

Wikimedia\Stats\Metrics\fresh ( )

Definition at line 132 of file MetricTrait.php.

◆ getComponent()

Wikimedia\Stats\Metrics\getComponent ( )

Definition at line 52 of file MetricTrait.php.

◆ getLabelKeys()

Wikimedia\Stats\Metrics\getLabelKeys ( )

Definition at line 84 of file MetricTrait.php.

◆ getName()

Wikimedia\Stats\Metrics\getName ( )

Definition at line 47 of file MetricTrait.php.

◆ getSampleCount()

Wikimedia\Stats\Metrics\getSampleCount ( )

Definition at line 62 of file MetricTrait.php.

◆ getSampleRate()

Wikimedia\Stats\Metrics\getSampleRate ( )

Definition at line 67 of file MetricTrait.php.

◆ getSamples()

Wikimedia\Stats\Metrics\getSamples ( )

Definition at line 57 of file MetricTrait.php.

◆ isHistogram()

Wikimedia\Stats\Metrics\isHistogram ( )

Definition at line 138 of file MetricTrait.php.

◆ setLabel()

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

Definition at line 93 of file MetricTrait.php.

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

◆ setLabels()

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

Definition at line 109 of file MetricTrait.php.

References Wikimedia\Stats\Metrics\setLabel().

◆ setSampleRate()

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

Definition at line 72 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 34 of file MetricTrait.php.