abstract class %SYSTEM.Monitor extends %SYSTEM.HelpThe %SYSTEM.Monitor class provides an interface for accessing the System Monitor. You can Get/Set/Clear the system 'State' and 'Alerts' counter.
You can use it via the special $SYSTEM object.
You can call help to get a list of all entrypoints:
This may be called periodically to get only recently added alerts. The first time GetAlerts is called, the caller should set LastAlert="". The caller may then retain the returned value and pass that LastAlert back in subsequent calls, to only retrieve messages added since then.
-1: System is hung
0: System state is OK
1: System state is Warning
2: System state is Alert