code: def restart_required(self):
          
          response = self.get("messages").body.read()
          messages = data.load(response)['feed']
          if 'entry' not in messages:
              result = False
          else:
              if isinstance(messages['entry'], dict):
                  titles = [messages['entry']['title']]
              else:
                  titles = [x['title'] for x in messages['entry']]
              result = 'restart_required' in titles
          return result
docs: Indicates whether splunkd is in a state that requires a restart.
  
          :return: A ``boolean`` that indicates whether a restart is required.