def do_notification_type_list(mc, args):
try:<EOL><INDENT>notification_types = mc.notificationtypes.list()<EOL><DEDENT>except (osc_exc.ClientException, k_exc.HttpError) as he:<EOL><INDENT>raise osc_exc.CommandError('<STR_LIT>' % (he.message, he.details))<EOL><DEDENT>else:<EOL><INDENT>if args.json:<EOL><INDENT>print(utils.json_formatter(notification_types))<EOL>return<EOL><DEDENT>else:<EOL><INDENT>formatters = {'<STR_LIT>': lambda x: x["<STR_LIT:type>"]}<EOL>utils.print_list(notification_types, ["<STR_LIT>"], formatters=formatters)<EOL><DEDENT><DEDENT>
List notification types supported by monasca.