GridProtectionAlliance / gsf

Grid Solutions Framework
https://gridprotectionalliance.org/NightlyBuilds/GridSolutionsFramework/Help/index.html
MIT License
161 stars 69 forks source link

Added Logic to prevent excessive triggering if condition is met #260

Closed clackner-gpa closed 3 months ago

clackner-gpa commented 3 months ago

This adds a Connectionstring parameter to prevent an email from going out on every recalculation as long as the condition is met. If MultiTriggerPrevention is true an email will only go out the first time the condition evaluates to true subsequent evaluation will be ignored until the condition evaluates to false at least once.

This prevents the system from sending out continous emails when using complex alarm logic

clackner-gpa commented 3 months ago

The DynamicCalculator base class is not neccesarrily evaluating a bool so that won't work. Cleanest solution would bve an intermediate base class DynamicTrigger that uses Dynamic Calculator to trigger something and stick it in there. But that's too much work for now.