protected function send_to_statsd()
{
foreach ($this->send_extra_stats as $k => $send) {
if ($send === true && in_array($k, $this->supported_extra_stats)) {
$this->statsd->gauge($k, $this->result["status"][$k] == true ? 1 : 0);
}
}
foreach ($this->result["status"]["memory_usage"] as $k => $v) {
$this->statsd->gauge($k, $v);
}
foreach ($this->result["status"]["opcache_statistics"] as $k => $v) {
$this->statsd->gauge($k, $v);
}
}