def METHOD_NAME(rjson, notifications_file):
    for event in rjson['events']:
        action = event['action']
        # we need the protocol, the host, the repositor and the tag
        protocol = event['target']['url'].split(':')[0]
        host = event['request']['host']
        repository = event['target']['repository']
        tag = event['target'].get('tag', "")
        image = '{}://{}/{}'.format(protocol, host, repository)
        if tag:
            image = '{}:{}'.format(image, tag)
        message = '{}|{}'.format(action, image)
        yield (action, image)