Ens.Alerting.AlertMonitor
class Ens.Alerting.AlertMonitor extends Ens.BusinessService
Business Service that checks whether any Ens.Alerting.ManagedAlert objects are open and have a next action time that has passed. For each such overdue ManagedAlert, a user callback sequence is initiated from the ProcessOverdueAlert()() method. The three stages of the callback sequence are as follows:
- The first stage of the callback sequence calls OnProcessOverdueAlert()(), which is a method that users can override in subclasses to execute any custom code they choose, as well as indicate whether all processing is complete for the current Managed Alert. The default implementation takes no action.
- The second stage of the callback sequence will check whether OverdueAlertRule is defined.
- If no rule is defined, the default processing in stage 3 will control the behaviour.
- Otherwise, the service will create a rule context object of type Ens.Alerting.Context.OverdueAlert using the GetOverdueAlertContext()() helper method. Users may override the helper method to instantiate user-defined subclasses of the base context. The newly created context object will then be supplied to the rule defined in OverdueAlertRule. The rule can update the NewNextActionTime or NewEscalationLevel properties to indicate the values of the ManagedAlert should be changed. The rule MUST return a boolean value to indicate whether a reminder should be sent. Note that if the EscalationLevel is increased, a notification will ALWAYS be sent to the Notification Manager. Furthermore, any changes made to the ManagedAlert object in the rule will be discarded by the AlertMonitor.
- If no actions are taken in stages 1 or 2, the default behaviour will always send a simple reminder request to the Notification Manager.
Property Inventory
Method Inventory
- CheckForOverdueAlerts()
- GetOverdueAlertContext()
- OnGetConnections()
- OnInit()
- OnProcessInput()
- OnProcessOverdueAlert()
- OnProcessOverdueRuleResult()
- ProcessOverdueAlert()
Parameters
Properties
Methods
Inherited Members
Inherited Properties
- %AlertStartTime
- %ConfigName
- %ConfigQueueName
- %LastActionTime
- %LastHandledTime
- %LastReportedError
- %OutsideCreated
- %PreserveSession
- %ProcessInputCalled
- %QuitTask
- %RequestHeader
- %SessionId
- %SuperSession
- %SuperSessionCreatedBeforeSession
- %WaitForNextCallInterval
- %WarnedLatest
- %isShadow
- AlertGracePeriod
- AlertGroups
- AlertOnError
- ArchiveIO
- BusinessPartner
- GenerateSuperSessionID
- IOLogEntry
- InactivityTimeout
- ThrottleDelay
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OnClose()
- %OnNew()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %SuperSessionSet()
- %ValidateObject()
- AdapterName()
- AssignOneSetting()
- CloseIOLogEntry()
- EnumerateSettingsClose()
- EnumerateSettingsExecute()
- EnumerateSettingsFetch()
- ForceSessionId()
- GenerateSuperSession()
- GetDeferredResponseToken()
- GetProductionSettingValue()
- GetProductionSettings()
- GetPropertyConnections()
- GetSettings()
- GetShadowInstance()
- NewIOLogEntry()
- OnError()
- OnGenerateSuperSession()
- OnKeepalive()
- OnMonitor()
- OnProductionStart()
- OnProductionStop()
- OnTearDown()
- PopulateSuperSession()
- QueueName()
- SaveIOLogEntry()
- SendAlert()
- SendDeferredResponse()
- SendRequestAsync()
- SendRequestSync()