MediaWiki REL1_40
|
Metrics UDP Emitter Implementation. More...
Inherits Wikimedia\Stats\Emitters\EmitterInterface.
Public Member Functions | |
__construct (string $prefix, StatsCache $cache, FormatterInterface $formatter, ?string $target) | |
send () | |
Runs metrics and their samples from the cache through the formatter and sends them along.
| |
withPayloadSize (int $payloadSize) | |
Sets payload size for batching. | |
withTransport (UDPTransport $transport) | |
Overrides the transport. | |
Metrics UDP Emitter Implementation.
Leverages UDPTransport to emit wire-formatted metrics.
Definition at line 39 of file UDPEmitter.php.
Wikimedia\Stats\Emitters\UDPEmitter::__construct | ( | string | $prefix, |
StatsCache | $cache, | ||
FormatterInterface | $formatter, | ||
?string | $target ) |
Definition at line 56 of file UDPEmitter.php.
Wikimedia\Stats\Emitters\UDPEmitter::send | ( | ) |
Runs metrics and their samples from the cache through the formatter and sends them along.
Implements Wikimedia\Stats\Emitters\EmitterInterface.
Definition at line 140 of file UDPEmitter.php.
Wikimedia\Stats\Emitters\UDPEmitter::withPayloadSize | ( | int | $payloadSize | ) |
Sets payload size for batching.
int | $payloadSize |
Definition at line 70 of file UDPEmitter.php.
Wikimedia\Stats\Emitters\UDPEmitter::withTransport | ( | UDPTransport | $transport | ) |
Overrides the transport.
UDPTransport | $transport |
Definition at line 81 of file UDPEmitter.php.