def get_healthcheck(project_id, name):
    """ Generate a healthcheck resource. """

    resource = {
        'name': name,
        'type': 'healthcheck.py',
        'properties':
            {
                'healthcheckType': 'HTTP',
                'port': 80,
                'requestPath': '/health-check',
                'healthyThreshold': 1,
                'unhealthyThreshold': 5,
                'checkIntervalSec': 30,
                'project': project_id,
            }
    }

    return resource