def check_internal_kibana_api(self): timestamp = int(time.time() * 1000) url = ("{url}/elasticsearch/.kibana/_mapping/*/field/" "_source?_={timestamp}".format(url=self.url, timestamp=timestamp)) response = utils.check_http_get_response(url) return response
def check_logs_dashboard(self): url = "{}/app/kibana#/dashboard/logs".format(self.url) response = utils.check_http_get_response(url) return response
def get_page(self, page_name, expected_codes=(200, )): url = urlparse.urljoin(self.nagios_url, self.pages[page_name]) response = utils.check_http_get_response(url=url, expected_codes=expected_codes) return NagiosBasePage(response.content)