private function computeHealthForAllTargets($resource)
    {
        return $resource->targets->reduce(function ($carry, $target) {
            return $target->result->healthy;
        }, true);
    }