Metrics Format and Output Helpers.
More...
Metrics Format and Output Helpers.
- Author
- Cole White
- Since
- 1.41
Definition at line 39 of file OutputFormats.php.
◆ getFormatFromString()
static Wikimedia\Stats\OutputFormats::getFormatFromString |
( |
string | $format | ) |
|
|
static |
Convert friendly format name to integer.
- Parameters
-
- 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
-
- Returns
- FormatterInterface
Definition at line 73 of file OutputFormats.php.
◆ DOGSTATSD
const Wikimedia\Stats\OutputFormats::DOGSTATSD = 3 |
◆ NULL
const Wikimedia\Stats\OutputFormats::NULL = 1 |
◆ STATSD
const Wikimedia\Stats\OutputFormats::STATSD = 2 |
The documentation for this class was generated from the following file: