Compare commits

...

2 Commits

Author SHA1 Message Date
027a3a8fb6 generate docs 2025-06-17 21:58:05 +03:00
f41b69f42a update docstrings 2025-06-17 21:57:58 +03:00
4 changed files with 25 additions and 5 deletions

View File

@ -20,6 +20,14 @@ ahriman.web.middlewares.exception\_handler module
:no-undoc-members: :no-undoc-members:
:show-inheritance: :show-inheritance:
ahriman.web.middlewares.metrics\_handler module
-----------------------------------------------
.. automodule:: ahriman.web.middlewares.metrics_handler
:members:
:no-undoc-members:
:show-inheritance:
Module contents Module contents
--------------- ---------------

View File

@ -4,6 +4,14 @@ ahriman.web.schemas package
Submodules Submodules
---------- ----------
ahriman.web.schemas.any\_schema module
--------------------------------------
.. automodule:: ahriman.web.schemas.any_schema
:members:
:no-undoc-members:
:show-inheritance:
ahriman.web.schemas.aur\_package\_schema module ahriman.web.schemas.aur\_package\_schema module
----------------------------------------------- -----------------------------------------------

View File

@ -12,6 +12,14 @@ ahriman.web.views.v1.status.info module
:no-undoc-members: :no-undoc-members:
:show-inheritance: :show-inheritance:
ahriman.web.views.v1.status.metrics module
------------------------------------------
.. automodule:: ahriman.web.views.v1.status.metrics
:members:
:no-undoc-members:
:show-inheritance:
ahriman.web.views.v1.status.repositories module ahriman.web.views.v1.status.repositories module
----------------------------------------------- -----------------------------------------------

View File

@ -56,12 +56,8 @@ def metrics_handler() -> Middleware:
""" """
middleware for metrics support middleware for metrics support
Args:
request(Request): request object
handler(HandlerType): request handler as returned by application
Returns: Returns:
StreamResponse: generated response for the request Middleware: middleware function to handle server metrics
""" """
if aiohttp_openmetrics is not None: if aiohttp_openmetrics is not None:
return aiohttp_openmetrics.metrics_middleware return aiohttp_openmetrics.metrics_middleware