def get_message()

in ml_ops/visualization_blog/lambdas/notify/notify.py [0:0]


def get_message(event):
    if 'statesError' in event.keys():
        return 'Internal error: {}'.format(event['statesError'])
    if 'serviceError' in event.keys():
        return 'Service error: {}'.format(event['statesError'])
    return 'Your forecasts are available!'