|
MediaWiki master
|
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 26 of file UDPEmitter.php.
| Wikimedia\Stats\Emitters\UDPEmitter::__construct | ( | string | $prefix, |
| StatsCache | $cache, | ||
| FormatterInterface | $formatter, | ||
| ?string | $target ) |
Definition at line 34 of file UDPEmitter.php.
References UDPTransport\MAX_PAYLOAD_SIZE, and UDPTransport\newFromString().
| 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 115 of file UDPEmitter.php.
| Wikimedia\Stats\Emitters\UDPEmitter::withPayloadSize | ( | int | $payloadSize | ) |
Sets payload size for batching.
| int | $payloadSize |
Definition at line 48 of file UDPEmitter.php.
| Wikimedia\Stats\Emitters\UDPEmitter::withTransport | ( | UDPTransport | $transport | ) |
Overrides the transport.
| UDPTransport | $transport |
Definition at line 59 of file UDPEmitter.php.