src/MonitoringLivestatus.php
public function deleteByTitle($title) {
        $result = $this->api->request(
            'monitoring.livestatus.delete',
            [
                'title' => $title
            ]
        );

        if (!array_key_exists('success', $result) ||
            $result['success'] !== true) {
            if (array_key_exists('message', $result)) {
                throw new RuntimeException(sprintf('Bad result: %s', $result['message']));
            } else {
                throw new RuntimeException('Bad result');
            }
        }

        return $this;
    }
public function deleteByTitle($title) {
        $result = $this->api->request(
            'monitoring.livestatus.delete',
            [
                'title' => $title
            ]
        );

        if (!array_key_exists('success', $result) ||
            $result['success'] !== true) {
            if (array_key_exists('message', $result)) {
                throw new RuntimeException(sprintf('Bad result: %s', $result['message']));
            } else {
                throw new RuntimeException('Bad result');
            }
        }

        return $this;
    }
public function deleteByTitle ( $ title ) { $ result = $ this -> api -> request ( 'monitoring.livestatus.delete' , [ 'title' => $ title ] ) ; if ( ! array_key_exists ( 'success' , $ result ) || $ result [ 'success' ] !== true ) { if ( array_key_exists ( 'message' , $ result ) ) { throw new RuntimeException ( sprintf ( 'Bad result: %s' , $ result [ 'message' ] ) ) ; } else { throw new RuntimeException ( 'Bad result' ) ; } } return $ this ; }
Delete a monitoring instance by its title

@param string $title Title

@return self Returns itself

@throws Exception on error
Delete a monitoring instance by its title