Skip to main content

SYS.Monitor.SystemNotify

Class SYS.Monitor.SystemNotify Extends %SYS.Monitor.AbstractNotification [ System = 3 ]

Implements the Notification component of the System Monitor. Alerts are posted and the system "health" is updated based on the rules and transition table defined here.

Properties

Alertson

Property Alertson As %Integer [ InitialExpression = 1, Internal ];

Alert flag

AlertTime

Property AlertTime As %Integer [ InitialExpression = 0, Internal ];

Latest alert time

Alerts

Property Alerts [ Internal, MultiDimensional ];

Alert latest time per sensor

Alertcount

Property Alertcount As %Integer [ InitialExpression = 0, Internal ];

Alert count

Warnings

Property Warnings [ Internal, MultiDimensional ];

Warning latest time

WarnSensor

Property WarnSensor [ Internal, MultiDimensional ];

Warned sensors

MonitorAlerts

Property MonitorAlerts As %Integer [ InitialExpression = 0, Internal ];

Monitor alerts count

Today

Property Today As %Integer [ Internal ];

Day number

Methods

Post

Method Post() As %Status [ Internal ]

System notification class All user apps taking part in SYS.Monitor call this interface for notification.

SaveAlert

Method SaveAlert(Sensor As %String, Msg As %String, PrevState As %Integer, CurState As %Integer) As %Status [ Internal ]

Save alert to persistent class

PurgeAlerts

Method PurgeAlerts() As %Status [ Internal ]

%OnNew

Method %OnNew(initval As %Integer) As %Status [ Private ]

init the alert persistent class