'Returns a JSON object containing a list of
LogicMonitor collectors'

def get_collectors(self):

    self.module.debug('Running    LogicMonitor.get_collectors...')
    self.module.debug("Making    RPC    call    to    'getAgents'")
    resp = self.rpc('getAgents', {})
    resp_json = json.loads(resp)
    if (resp_json['status'] is 200):
        self.module.debug('RPC    call    succeeded')
        return resp_json['data']
    else:
        self.fail(msg=resp)
