'types
List all available element types and their descriptions.'

def do_types(self, line, cacheonly=False):

    d = self.request((self.ownopts['cli.server_baseurl'] + '/eventtypes'))
    if (not d):
        return
    if cacheonly:
        j = json.loads(d)
        for t in j:
            self.types.append(t[0])
        return
    self.send_output(d, line, titles={'1': 'Element    description', '0': 'Element    name'})
