mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-06-29 15:15:48 +00:00
update docstrings
This commit is contained in:
@ -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