Skip to main content

%SYS.Monitor.AbstractNotification

Class %SYS.Monitor.AbstractNotification Extends %RegisteredObject [ Abstract, System = 3 ]

Abstract class for a Notifier

User classes inherit from this class to become a Notifier for System Monitor.

Properties

Logfile

Property Logfile As %String [ InitialExpression = {$zu(12)_"SystemMonitor.log"}, Internal ];

logfile

Notifications

Property Notifications [ MultiDimensional ];

State

Property State As %String [ InitialExpression = " " ];

Runtime state

Methods

Start

Method Start() As %Status

USER MAY IMPLEMENT THIS METHOD This method is called when the notifier class is created.

Post

Method Post() As %Status [ Abstract ]

USER MUST IMPLEMENT THIS METHOD Post a notification

ClearNotifications

Method ClearNotifications() As %Integer [ Final ]

USER DOES NOT IMPLEMENT THIS METHOD This method is called to clear notifications for the SYS.Monitor Controller

OpenLog

Method OpenLog() As %Status [ Final ]

LogMsg

Method LogMsg(msg As %String = "") As %Status [ Final ]

LogCon

Method LogCon(Msg As %String = "", Severity As %Integer = 0) As %Status [ Final ]

GetNextNotification

Method GetNextNotification(ByRef Sensor As %String = "", Output Severity As %Integer, Output Msg As %String) As %Status

Get Next Notification