Home > Class Reference > %SYS namespace > %SYS.Monitor

%SYS.Monitor

Controling class for System Monitor. Used to start and stop System Monitor process. Includes helper config methods used by ^%SYSMONMGR.

Method Inventory

Methods

classmethod AddComponentClass(Sclass As %String, Desc As %String = "") as %Status [ Language = objectscript ]
Add class to Monitor
classmethod CalcSignif(Tval, Degrees, ByRef NullProbability As %String) [ Language = objectscript ]
Returns NullProbability = 0: Null hypothesis < 90% probability Returns NullProbability = 1: Null hypothesis < 95% probability Returns NullProbability = 2: Null hypothesis < 99% probability Returns NullProbability = 3: Null hypothesis < 99.9% probability Returns NullProbability = 4: Null hypothesis > 99.9% probability
classmethod CalcStats(ByRef Readings As %List, ByRef Mean As %Integer, ByRef Sigma2 As %Integer) as %Status [ Language = objectscript ]
Calculate mean and standard deviation squared based on list of values
classmethod DebugLev(level As %Boolean) as %Boolean [ Language = objectscript ]
System Monitor debug level. Setting to '1' will cause %SYS.Monitor.Control to save SystemSensors as %SYS.Monitor.SensorReading objects.
classmethod DeleteStartNS(Namespace As %String) as %Status [ Language = objectscript ]
Remove a System Monitor startup namespace
classmethod Enabled(state As %Boolean) as %Boolean [ Language = objectscript ]
Disable / Enable System Monitor
classmethod InitializeDB() as %Status [ Language = objectscript ]
classmethod Interval(int As %Integer) as %Integer [ Language = objectscript ]
System Monitor sample interval
classmethod IsComponent(Sclass As %String) as %Boolean [ Language = objectscript ]
Check if class is a component of System Monitor
classmethod IsUp() as %Integer [ Language = objectscript ]
Check if System Monitor is running
classmethod KeepDashboardDays(days As %Integer) as %Integer [ Language = objectscript ]
Set number of days of Dashboard history to keep. Default is 5 days. Returns current number of days.
classmethod ListStartNS(Namespace As %String) as %Status [ Language = objectscript ]
List System Monitor startup namespaces
classmethod Lock() as %Boolean [ Language = objectscript ]
System Monitor Lock
classmethod RemoveComponentClass(Sclass As %String) as %Status [ Language = objectscript ]
Remove component class from Monitor
classmethod ResetDefault() as %Status [ Language = objectscript ]
Reset all system monitor configuration data to default values
classmethod SetStartNS(Namespace As %String) as %Status [ Language = objectscript ]
Set a System Monitor startup namespace
classmethod Start() as %Status [ Language = objectscript ]
Main classmethod
classmethod StartSystemMonitorUserNS() as %Status [ Language = objectscript ]
Start System Monitor in user namespaces where %MONAPP is active
classmethod State() as %String [ Language = objectscript ]
Get the state for a subscriber Return: 0 - not running, -1 - unexpected error, else string with state information.
classmethod Stop() as %Integer [ Language = objectscript ]
Stop the System monitor
classmethod StudentTTest(Readings1 As %List, Readings2 As %List, ByRef Mean1 As %Integer, ByRef Mean2, ByRef Sigma1 As %Integer, ByRef Sigma2 As %Integer, ByRef TVal, ByRef Degree, ByRef Result) as %Status [ Language = objectscript ]
Perform the Student T-Test for 2 sets of data. Result is a string giving probability that the means of the two sets are significantly (statistically) different.
classmethod Unlock() as %Boolean [ Language = objectscript ]
System Monitor Unlock

Inherited Members

Inherited Methods