Skip to content

Commit

Permalink
Report alerts in the /overwatcher/status route
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jan 24, 2025
1 parent 6ecd97c commit a362b4e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

* Added `/overwatcher/reset` route.

### ✨ Improved

* Report alerts in the `/overwatcher/status` route.


## 0.2.6 - 2025-01-14

Expand Down
5 changes: 5 additions & 0 deletions src/lvmapi/routers/overwatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ class OverwatcherStatusModel(BaseModel):
Field(description="Is it safe to observe?"),
] = None

alerts: Annotated[
list[str],
Field(description="Safety alerts"),
] = []

allow_calibrations: Annotated[
bool,
Field(description="Is the overwatcher allowed to take cals?"),
Expand Down

0 comments on commit a362b4e

Please sign in to comment.