# Path: simple_monitor_alert/monitor.py
# def get_verbose_condition(observable):
#     value = observable.get_line_value('value')
#     expected = observable.get_matcher()
#     if hasattr(expected, 'pattern'):
#         expected = expected.pattern
#     elif expected:
#         expected = expected.parse()
#     if isinstance(expected, six.string_types) or isinstance(expected, int):
#         expected = '== {}'.format(expected)
#     return '{} {}'.format(value, expected)


import os
import importlib
import logging
import sys
import datetime
import dateutil
import dateutil.parser
from dateutil.tz.tz import tzlocal
from simple_monitor_alert.monitor import get_verbose_condition
        from simple_monitor_alert.utils.system import get_hostname
        from simple_monitor_alert import __version__
        from simple_monitor_alert.utils.system import get_hostname



logger = logging.getLogger('sma')


DEFAULT_MESSAGE = """\
{hostname}: {name}

# Path: simple_monitor_alert/monitor.py
# def get_verbose_condition(observable):
#     value = observable.get_line_value('value')
#     expected = observable.get_matcher()
#     if hasattr(expected, 'pattern'):
#         expected = expected.pattern
#     elif expected:
#         expected = expected.parse()
#     if isinstance(expected, six.string_types) or isinstance(expected, int):
#         expected = '== {}'.format(expected)
#     return '{} {}'.format(value, expected)


# Path: simple_monitor_alert/alerts.py
import os
import importlib
import logging
import sys
import datetime
import dateutil
import dateutil.parser
from dateutil.tz.tz import tzlocal
from simple_monitor_alert.monitor import get_verbose_condition
        from simple_monitor_alert.utils.system import get_hostname
        from simple_monitor_alert import __version__
        from simple_monitor_alert.utils.system import get_hostname




logger = logging.getLogger('sma')


DEFAULT_MESSAGE = """\
{hostname}: {name}

{extra_info}