MediaWiki REL1_41
Wikimedia\Stats\OutputFormats Class Reference

Metrics Format and Output Helpers. More...

Static Public Member Functions

static getFormatFromString (string $format)
 Convert friendly format name to integer.
 
static getNewEmitter (string $prefix, StatsCache $cache, FormatterInterface $formatter, string $target=null)
 Returns an emitter instance appropriate the formatter instance.
 
static getNewFormatter (int $format)
 Returns an instance of the requested formatter.
 

Public Attributes

const DOGSTATSD = 3
 
const NULL = 1
 
const STATSD = 2
 

Detailed Description

Metrics Format and Output Helpers.

Author
Cole White
Since
1.41

Definition at line 39 of file OutputFormats.php.

Member Function Documentation

◆ getFormatFromString()

static Wikimedia\Stats\OutputFormats::getFormatFromString ( string $format)
static

Convert friendly format name to integer.

Parameters
string$format
Returns
int

Definition at line 57 of file OutputFormats.php.

◆ getNewEmitter()

static Wikimedia\Stats\OutputFormats::getNewEmitter ( string $prefix,
StatsCache $cache,
FormatterInterface $formatter,
string $target = null )
static

Returns an emitter instance appropriate the formatter instance.

Parameters
string$prefix
StatsCache$cache
FormatterInterface$formatter
string | null$target
Returns
EmitterInterface

Definition at line 95 of file OutputFormats.php.

◆ getNewFormatter()

static Wikimedia\Stats\OutputFormats::getNewFormatter ( int $format)
static

Returns an instance of the requested formatter.

Parameters
int$format
Returns
FormatterInterface

Definition at line 73 of file OutputFormats.php.

Member Data Documentation

◆ DOGSTATSD

const Wikimedia\Stats\OutputFormats::DOGSTATSD = 3

Definition at line 43 of file OutputFormats.php.

◆ NULL

const Wikimedia\Stats\OutputFormats::NULL = 1

Definition at line 41 of file OutputFormats.php.

◆ STATSD

const Wikimedia\Stats\OutputFormats::STATSD = 2

Definition at line 42 of file OutputFormats.php.


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