from c2_wrapper import create_custom_field, create_rule, create_hook


health_check_cf = {
        'name': 'health_check_config',
        'label': 'Health Check Config',
        'type': 'CODE',
        'show_on_servers': True,
        'description': ('JSON data specifying what to perform health checks on.')
    }

alerting_action_dict = {
        'name': 'Alert Channels for Health Checks',
        'shared': False,
        'enabled': True,
        'hook_point': None,
        'module': 'health_alerts.py',
}

rule = {
        'name': 'resource_health_checks',
        'label': 'Perform Resource Health Checks',
        'description': 'Resource Health Check support',
        'condition': {
            'name': 'Perform Resource Health Checks',
            'description': 'Resource Health Check support',
            'shared': False,
            'module': 'resource_health_checks.py',
        },
        'action': alerting_action_dict
}


def run(job, *args, **kwargs):
    create_custom_field(**health_check_cf)
    create_rule(**rule)

    return "", "", ""

@@ -62,16 +62,55 @@
 te_hook%0A
+from common.methods import set_progress
 %0A%0Ahealth
@@ -1012,69 +1012,266 @@
     
-create_custom_field(**health_check_cf)%0A    create_rule(**rule
+set_progress(%22Creating health_check_config Custom Field...%22)%0A    create_custom_field(**health_check_cf)%0A%0A    set_progress(%22Creating Resource Health Checks Rule...%22)%0A    create_rule(**rule)%0A%0A    set_progress(%22Done creating objects for resource health checks.%22
 )%0A%0A 

Add logging to create.py