'Compose target string from healthcheck parameters'

def _get_health_check_target(self):

    protocol = self.health_check['ping_protocol'].upper()
    path = ''
    if ((protocol in ['HTTP', 'HTTPS']) and ('ping_path' in self.health_check)):
        path = self.health_check['ping_path']
    return ('%s:%s%s' % (protocol, self.health_check['ping_port'], path))
