code: def search(self):  # pylint: disable=no-self-use
          
          logger.debug("Grafana search... %s", cherrypy.request.method)
          if cherrypy.request.method == 'OPTIONS':
              cherrypy.response.headers['Access-Control-Allow-Methods'] = 'GET,POST,PATCH,PUT,DELETE'
              cherrypy.response.headers['Access-Control-Allow-Headers'] = 'Content-Type,Authorization'
              cherrypy.response.headers['Access-Control-Allow-Origin'] = '*'
              cherrypy.request.handler = None
              return {}
  
          if getattr(cherrypy.request, 'json', None):
              logger.debug("Posted data: %s", cherrypy.request.json)
  
          logger.debug("Grafana search returns: %s", GRAFANA_TARGETS)
          return GRAFANA_TARGETS
docs: Request available queries
  
          Posted data: {u'target': u''}
  
          Return the list of available target queries
  
          :return: See upper comment
          :rtype: list