Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

debugging.py 467B

1234567891011121314151617
  1. from pydantic import BaseModel
  2. from core.plugin.impl.base import BasePluginClient
  3. class PluginDebuggingClient(BasePluginClient):
  4. def get_debugging_key(self, tenant_id: str) -> str:
  5. """
  6. Get the debugging key for the given tenant.
  7. """
  8. class Response(BaseModel):
  9. key: str
  10. response = self._request_with_plugin_daemon_response("POST", f"plugin/{tenant_id}/debugging/key", Response)
  11. return response.key