public function createLogCollector(LogCollectorSettings $collector)
    {
        $url = self::makeUrl();
        $jsonData = json_encode($collector->jsonSerialize());
        
        $result = $this->service->prepAndSend($url, array(200), "POST", $jsonData, true);
        $resultObject = json_decode($result);
        return LogCollectorSettings::createFromJSON($resultObject);
    }