MediaWiki master
Wikimedia\Stats\Formatters\FormatterInterface Interface Reference

Metrics Formatter Interface. More...

Inherited by Wikimedia\Stats\Formatters\DogStatsdFormatter, Wikimedia\Stats\Formatters\NullFormatter, and Wikimedia\Stats\Formatters\StatsdFormatter.

Public Member Functions

 getFormattedSamples (string $prefix, MetricInterface $metric)
 Renders metric to line format.
 

Detailed Description

Metrics Formatter Interface.

Author
Cole White
Since
1.41

Definition at line 30 of file FormatterInterface.php.

Member Function Documentation

◆ getFormattedSamples()

Wikimedia\Stats\Formatters\FormatterInterface::getFormattedSamples ( string  $prefix,
MetricInterface  $metric 
)

Renders metric to line format.

Parameters
string$prefix
MetricInterface$metric
Returns
string[]

Implemented in Wikimedia\Stats\Formatters\DogStatsdFormatter, and Wikimedia\Stats\Formatters\StatsdFormatter.


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