예제 #1
0
 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
예제 #2
0
 def check_logs_dashboard(self):
     url = "{}/app/kibana#/dashboard/logs".format(self.url)
     response = utils.check_http_get_response(url)
     return response
예제 #3
0
 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)