def service_check(self, env): from params import params # check the parsers Logger.info("Performing Parser service check") parser_cmds = ParserCommands(params) parser_cmds.service_check(env) # check enrichment Logger.info("Performing Enrichment service check") enrichment_cmds = EnrichmentCommands(params) enrichment_cmds.service_check(env) # check indexing Logger.info("Performing Indexing service check") indexing_cmds = IndexingCommands(params) indexing_cmds.service_check(env) # check the profiler Logger.info("Performing Profiler service check") profiler_cmds = ProfilerCommands(params) profiler_cmds.service_check(env) # check the rest api Logger.info("Performing REST application service check") rest_cmds = RestCommands(params) rest_cmds.service_check(env) # check the management UI Logger.info("Performing Management UI service check") mgmt_cmds = ManagementUICommands(params) mgmt_cmds.service_check(env) # check the alerts UI Logger.info("Performing Alerts UI service check") alerts_cmds = AlertsUICommands(params) alerts_cmds.service_check(env) Logger.info("Metron service check completed successfully") exit(0)
def restart(self, env): from params import params env.set_params(params) self.configure(env) commands = AlertsUICommands(params) commands.restart_alerts_ui(env)
def status(self, env): from params import status_params env.set_params(status_params) commands = AlertsUICommands(status_params) commands.status_alerts_ui(env)
def stop(self, env, upgrade_type=None): from params import params env.set_params(params) commands = AlertsUICommands(params) commands.stop_alerts_ui()
def start(self, env, upgrade_type=None): from params import params env.set_params(params) self.configure(env) commands = AlertsUICommands(params) commands.start_alerts_ui()