src/Jaspersoft/Service/LogCollectorService.php
public function stopAllLogCollectors()
    {
        $url = self::makeUrl();

        $body = json_encode(array("patch" =>
            array(array("field" => "status", "value" => "STOPPED"))));

        $response = $this->service->prepAndSend($url, array(200), "PATCH", $body, true);
        $responseObj = json_decode($response);
        if (!empty($responseObj)) {

            $result = array();
            foreach ($responseObj->CollectorSettingsList as $lcs) {
                $result[] = LogCollectorSettings::createFromJSON($lcs);
            }
            return $result;
        } else {
            return array();
        }
    }
public function stopAllLogCollectors()
    {
        $url = self::makeUrl();

        $body = json_encode(array("patch" =>
            array(array("field" => "status", "value" => "STOPPED"))));

        $response = $this->service->prepAndSend($url, array(200), "PATCH", $body, true);
        $responseObj = json_decode($response);
        if (!empty($responseObj)) {

            $result = array();
            foreach ($responseObj->CollectorSettingsList as $lcs) {
                $result[] = LogCollectorSettings::createFromJSON($lcs);
            }
            return $result;
        } else {
            return array();
        }
    }
public function stopAllLogCollectors ( ) { $ url = self :: makeUrl ( ) ; $ body = json_encode ( array ( "patch" => array ( array ( "field" => "status" , "value" => "STOPPED" ) ) ) ) ; $ response = $ this -> service -> prepAndSend ( $ url , array ( 200 ) , "PATCH" , $ body , true ) ; $ responseObj = json_decode ( $ response ) ; if ( ! empty ( $ responseObj ) ) { $ result = array ( ) ; foreach ( $ responseObj -> CollectorSettingsList as $ lcs ) { $ result [ ] = LogCollectorSettings :: createFromJSON ( $ lcs ) ; } return $ result ; } else { return array ( ) ; } }
Stop all running log collectors

@return array New representation of existing Log Collectors following modification
Stop all running log collectors