code: def _api(self, plugin):
          
          response.content_type = 'application/json; charset=utf-8'
  
          if plugin not in self.plugins_list:
              abort(400, "Unknown plugin %s (available plugins: %s)" % (plugin, self.plugins_list))
  
          # Update the stat
          self.__update__()
  
          try:
              # Get the JSON value of the stat ID
              statval = self.stats.get_plugin(plugin).get_stats()
          except Exception as e:
              abort(404, "Cannot get plugin %s (%s)" % (plugin, str(e)))
          return statval
docs: Glances API RESTful implementation.
  
          Return the JSON representation of a given plugin
          HTTP/200 if OK
          HTTP/400 if plugin is not found
          HTTP/404 if others error