Skip to content

Commit

Permalink
Reorganize AlertData fields per review
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Nov 4, 2024
1 parent b652982 commit 5a771f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions neon_data_models/models/api/node_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,16 @@ class ClearDataData(BaseModel):

class CoreAlertExpired(BaseMessage):
class AlertData(BaseModel):
next_expiration_time: Optional[datetime]
alert_type: AlertType
priority: Annotated[int, Field(gt=1, lt=10)]
alert_name: str
context: MessageContext
next_expiration_time: Optional[datetime]
repeat_frequency: Optional[timedelta]
repeat_days: Optional[List[Weekdays]]
end_repeat: Optional[datetime]
alert_name: str
audio_file: Optional[str] = None
script_filename: Optional[str] = None
context: MessageContext

msg_type: Literal["neon.alert_expired"] = "neon.alert_expired"
data: AlertData
Expand Down

0 comments on commit 5a771f9

Please sign in to comment.