-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: AssemblyJohn <[email protected]>
- Loading branch information
1 parent
8f2598d
commit ced958e
Showing
2 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
@startuml Periodic Monitors | ||
|
||
start | ||
:DB Monitor Config Setup; | ||
:DB Monitor Initialization; | ||
if (Monitoring Enabled?) then (yes) | ||
:Query Config\nProcess Time; | ||
:Enable Monitor\nProcessor; | ||
repeat | ||
:Verify Periodic\nMonitors; | ||
if(Periodic Monitor\nTime Elapsed?) then (yes) | ||
if(Online?) then (yes) | ||
if(Active Monitoring Severity\n> Monitor Severity?) then (yes) | ||
:Queue \nPeriodic Monitor; | ||
else (no) | ||
:Discard Monitor; | ||
endif | ||
else (no) | ||
if(Offline Monitoring Severity\n> Monitor Severity?) then (yes) | ||
:Queue \nPeriodic Monitor; | ||
else (no) | ||
:Discard Monitor; | ||
endif | ||
endif | ||
else(no) | ||
:Update Monitor\nElapsed Time; | ||
endif | ||
:Verify Triggered\nMonitors; | ||
:Queue Triggered\nMonitors; | ||
repeat while (Each N Seconds) | ||
else (no) | ||
:Do Nothing; | ||
endif | ||
stop | ||
|
||
@enduml |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@startuml Periodic Monitors | ||
|
||
start | ||
:DB Monitor Config Setup; | ||
:DB Monitor Initialization; | ||
if (Monitoring Enabled?) then (yes) | ||
:Inject Device\nModel Listener; | ||
:Enable Monitor\nProcessor; | ||
repeat | ||
:Verify Variable\nMonitors; | ||
if(Variable Monitor\nTriggered?) then (yes) | ||
if(Online?) then (yes) | ||
if(Active Monitoring Severity\n> Monitor Severity?) then (yes) | ||
:Queue Monitor; | ||
else (no) | ||
:Discard Monitor; | ||
endif | ||
else (no) | ||
if(Offline Monitoring Severity\n> Monitor Severity?) then (yes) | ||
:Queue Monitor; | ||
else (no) | ||
:Discard Monitor; | ||
endif | ||
endif | ||
else(no) | ||
:Do Nothing; | ||
endif | ||
repeat while (DB Variable Updated) | ||
else (no) | ||
:Do Nothing; | ||
endif | ||
stop | ||
|
||
@enduml |