Skip to content

Conversation

@naqvis
Copy link
Contributor

@naqvis naqvis commented Sep 17, 2025

No description provided.

@naqvis naqvis requested review from chillfox and stakach September 17, 2025 04:28
@github-actions github-actions bot added the type: enhancement new feature or request label Sep 17, 2025
Copy link
Member

@stakach stakach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor change related to check interval

attribute alert_type : AlertType = AlertType::THRESHOLD, converter: PlaceOS::Model::PGEnumConverter(PlaceOS::Model::Alert::AlertType)

# In milliseconds - how often to check the condition
attribute check_interval : Int32 = 60000 # 1 minute default
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need check_interval as MQTT pushes data as it changes so the frontent will be notified of any changes as soon as they occur.

Hence the conditions can be checked each time there is an update.

What might be useful is a delay on notification, like say don't show low priority issues unless they have been active for 1min without resolving automatically, 30 seconds for medium, 15 seconds for high and 2 seconds for critical (as defaults)
The user could configure alternative times - but the defaults might be simpler to be defined on the frontend and we just have the model default to 15 seconds if the frontend doesn't specify

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed change

@github-actions github-actions bot added type: enhancement new feature or request and removed type: enhancement new feature or request labels Sep 17, 2025
@naqvis naqvis requested a review from stakach September 17, 2025 06:00
Copy link
Member

@stakach stakach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stakach stakach merged commit 9a9e375 into master Sep 17, 2025
9 checks passed
@stakach stakach deleted the PPT-2077 branch September 17, 2025 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement new feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants