# File lib/smart_proxy_monitoring_icinga2/monitoring_icinga2_main.rb, line 25
    def set_downtime_host(host, author, comment, start_time, end_time)
      request_url = "/actions/schedule-downtime?type=Host&filter=host.name==\"#{host}\""
      data = {
        'author' => author,
        'comment' => comment,
        'start_time' => start_time,
        'end_time' => end_time,
        'duration' => 1000
      }

      result = with_errorhandling("Set downtime on #{host}") do
        Icinga2Client.post(request_url, data.to_json)
      end
      result.to_json
    end