code: def schedule_host_downtime(self, host, start_time, end_time, fixed,
                                 trigger_id, duration, author, comment):
          
          data = {'ref': host.uuid, 'ref_type': host.my_type, 'start_time': start_time,
                  'end_time': end_time, 'fixed': fixed, 'trigger_id': trigger_id,
                  'duration': duration, 'author': author, 'comment': comment}
          downtime = Downtime(data)
          downtime.add_automatic_comment(host)
          host.add_downtime(downtime)
  
          self.send_an_element(host.get_update_status_brok())
          if trigger_id not in ('', 0):
              for item in self.daemon.hosts:
                  if trigger_id in item.downtimes:
                      host.downtimes[trigger_id].trigger_me(downtime.uuid)
docs: Schedule a host downtime
          Format of the line that triggers function call::
  
          SCHEDULE_HOST_DOWNTIME;<host_name>;<start_time>;<end_time>;<fixed>;
          <trigger_id>;<duration>;<author>;<comment>
  
          :param host: host to schedule downtime
          :type host: alignak.object.host.Host
          :param start_time: downtime start time
          :type start_time:
          :param end_time: downtime end time
          :type end_time:
          :param fixed: is downtime fixed
          :type fixed: bool
          :param trigger_id: downtime id that triggered this one
          :type trigger_id: str
          :param duration: downtime duration
          :type duration: int
          :param author: downtime author
          :type author: str
          :param comment: downtime comment
          :type comment: str
          :return: None