def METHOD_NAME(self, _):
    # type: (Any) -> None
    self._additional_tags = []
    session = self.open_session()
    if session.get('Value'):
        ref = session['Value']
        self._collect_version(ref)
        self.xenserver.session.logout(ref)
    try:
        data = self._get_updated_metrics()
        self.service_check(
            self.SERVICE_CHECK_CONNECT,
            self.OK,
            ['citrix_hypervisor_url:{}'.format(self._base_url)] + self._additional_tags + self.tags,
        )
    except Exception as e:
        self.service_check(
            self.SERVICE_CHECK_CONNECT,
            self.CRITICAL,
            ['citrix_hypervisor_url:{}'.format(self._base_url)] + self._additional_tags + self.tags,
        )
        self.log.exception(e)
    else:
        self.submit_metrics(data)