Last active
July 15, 2020 21:05
-
-
Save cbrake/a8fee47c420ea6a69fcb923654650725 to your computer and use it in GitHub Desktop.
Z Alerts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Z Alerts | |
Inactive* | |
all cond met -> Last Action Active and less 30m since last action? | |
Action | |
all cond met-> Active | |
not all cond met -> Inactive | |
Active | |
any cond not met -> Check Repeat Limit? | |
30m since last action -> Action | |
Check Repeat Limit? | |
30m since last action? -> Action | |
not 30m since last action? -> Inactive | |
Last Action Active and less 30m since last action? | |
Yes? -> Active | |
No? -> Action | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function render(model){ | |
let current_state_name = model.active_states[0].name; | |
return $("h1", | |
{style: {color: "darkBlue"}}, | |
`The current state is: ${current_state_name}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment