mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-06-28 14:51:43 +00:00
Compare commits
2 Commits
930eccc55a
...
027a3a8fb6
Author | SHA1 | Date | |
---|---|---|---|
027a3a8fb6 | |||
f41b69f42a |
@ -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
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
@ -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
|
||||||
-----------------------------------------------
|
-----------------------------------------------
|
||||||
|
|
||||||
|
@ -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
|
||||||
-----------------------------------------------
|
-----------------------------------------------
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user