def METHOD_NAME(self):
    """
    Test that event.dataset is set to `uptime`
    """
    self.render_config_template(
        monitors=[
            {
                "type": "http",
                "urls": ["http://localhost:9200"]
            },
            {
                "type": "tcp",
                "hosts": ["localhost:9200"]
            }
        ]
    )
    try:
        heartbeat_proc = self.start_beat()
        self.wait_until(lambda: self.output_lines() >= 2)
    finally:
        heartbeat_proc.check_kill_and_wait()
    for output in self.read_output():
        self.assertEqual(
            output["event.dataset"],
            output["monitor.type"],
            "Check for event.dataset in {} failed".format(output)
        )