Skip to content

Commit 3d2a143

Browse files
authored
Merge pull request #1058 from tisnik/lcore-1142-minor-updates-in-docstrings
LCORE-1142: minor updates in docstrings
2 parents 5f817cd + 3edc087 commit 3d2a143

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/app/endpoints/feedback.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ def store_feedback(user_id: str, feedback: dict) -> None:
151151
Parameters:
152152
user_id (str): Unique identifier of the user submitting feedback.
153153
feedback (dict): Feedback data to be stored, merged with user ID and timestamp.
154+
155+
Raises:
156+
HTTPException: If writing the feedback file fails (HTTP 500).
154157
"""
155158
logger.debug("Storing feedback for user %s", user_id)
156159
# Creates storage path only if it doesn't exist. The `exist_ok=True` prevents

src/app/endpoints/health.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ async def readiness_probe_get_method(
9696
If any provider reports an error status, responds with HTTP 503
9797
and details of unhealthy providers; otherwise, indicates the
9898
service is ready.
99+
100+
Returns:
101+
ReadinessResponse: Object with `ready` indicating overall readiness,
102+
`reason` explaining the outcome, and `providers` containing the list of
103+
unhealthy ProviderHealthStatus entries (empty when ready).
99104
"""
100105
# Used only for authorization
101106
_ = auth

src/app/endpoints/metrics.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ async def metrics_endpoint_handler(
5151
Initializes model metrics on the first request if not already
5252
set up, then responds with the current metrics snapshot in
5353
Prometheus format.
54+
55+
Returns:
56+
PlainTextResponse: Response body containing the Prometheus metrics text
57+
and the Prometheus content type.
5458
"""
5559
# Used only for authorization
5660
_ = auth

0 commit comments

Comments
 (0)