def get_detectors(self, name=None, tags=None, batch_size=<NUM_LIT:100>, **kwargs):
detectors = []<EOL>offset = <NUM_LIT:0><EOL>while True:<EOL><INDENT>resp = self._get(<EOL>self._u(self._DETECTOR_ENDPOINT_SUFFIX),<EOL>params={<EOL>'<STR_LIT>': offset,<EOL>'<STR_LIT>': batch_size,<EOL>'<STR_LIT:name>': name,<EOL>'<STR_LIT>': tags or [],<EOL>},<EOL>**kwargs)<EOL>resp.raise_for_status()<EOL>data = resp.json()<EOL>detectors += data['<STR_LIT>']<EOL>if len(detectors) == data['<STR_LIT:count>']:<EOL><INDENT>break<EOL><DEDENT>offset = len(detectors)<EOL><DEDENT>return detectors<EOL>
Retrieve all (v2) detectors matching the given name; all (v2)
        detectors otherwise.

        Note that this method will loop through the paging of the results and
        accumulate all detectors that match the query. This may be expensive.