public function monitor() : array
{
$handlers = [];
foreach ($this->monitors as $class => $monitors) {
$handlers[$class] = array_map(function ($montior) {
return $montior->monitor();
}, $monitors);
}
return ["interfaces" => $this->interfaces, "name" => $this->name, "tls" => $this->tlsContextArr, "handlers" => $handlers];
}