code: def disable_flap_detection(self):
          
          # todo: #783 create a dedicated brok for global parameters
          if self.my_conf.enable_flap_detection:
              self.my_conf.modified_attributes |= DICT_MODATTR["MODATTR_FLAP_DETECTION_ENABLED"].value
              self.my_conf.enable_flap_detection = False
              self.my_conf.explode_global_conf()
              self.daemon.update_program_status()
              # Is need, disable flap state for hosts and services
              for service in self.my_conf.services:
                  if service.is_flapping:
                      service.is_flapping = False
                      service.flapping_changes = []
                      self.send_an_element(service.get_update_status_brok())
              for host in self.my_conf.hosts:
                  if host.is_flapping:
                      host.is_flapping = False
                      host.flapping_changes = []
                      self.send_an_element(host.get_update_status_brok())
docs: Disable flap detection (globally)
          Format of the line that triggers function call::
  
          DISABLE_FLAP_DETECTION
  
          :return: None