code: def filter(self):
          '''
          Filters exit the proccess if the event should not be handled.
          Filtering events is deprecated and will be removed in a future release.
          '''
  
          if self.deprecated_filtering_enabled():
              print('warning: event filtering in sensu-plugin is deprecated,' +
                    'see http://bit.ly/sensu-plugin')
              self.filter_disabled()
              self.filter_silenced()
              self.filter_dependencies()
  
              if self.deprecated_occurrence_filtering():
                  print('warning: occurrence filtering in sensu-plugin is' +
                        'deprecated, see http://bit.ly/sensu-plugin')
                  self.filter_repeated(f filter(self):
          '''
          Filters exit the proccess if the event should not be handled.
          Filtering events is deprecated and will be removed in a future release.
          '''
  
          if self.deprecated_filtering_enabled():
              print('warning: event filtering in sensu-plugin is deprecated,' +
                    'see http://bit.ly/sensu-plugin')
              self.filter_disabled()
              self.filter_silenced()
              self.filter_dependencies()
  
              if self.deprecated_occurrence_filtering():
                  print('warning: occurrence filtering in sensu-plugin is' +
                        'deprecated, see http://bit.ly/sensu-plugin')
                  self.filter_repeated()
docs: Filters exit the proccess if the event should not be handled.
          Filtering events is deprecated and will be removed in a future release.