

def print_triggered_alarms(entity=None):
    '\n    This is a useful method if you need to print out the alarm morefs\n\n    :param entity:\n    '
    alarms = entity.triggeredAlarmState
    for alarm in alarms:
        print(('#' * 40))
        print('alarm_moref: {0}'.format(alarm.key.split('.')[0]))
        print('alarm status: {0}'.format(alarm.overallStatus))

dataset/ETHPy150Open vmware/pyvmomi-community-samples/samples/tools/alarm.py print_triggered_alarms/original