public class AlertMonitor.History extends Object
AlertMonitor.Events in a category. The history retains the
first event, the most recent N events where N is determined by the
AlertMonitor.getHistoryLength() attribute, the count of events
and other fields used to determine how frequently new notifications are
issued.| Constructor and Description |
|---|
History() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCount() |
String |
getDetailedHistory() |
long |
getDuration() |
List<AlertMonitor.Event> |
getEventList() |
AlertMonitor.Event |
getFirstEvent() |
long |
getFirstEventTime() |
AlertMonitor.Event |
getLastEvent() |
long |
getLastEventTime() |
AlertMonitor.AlertLevel |
getLevel() |
void |
poll(long now,
boolean force)
Issue a log messages and notifications as needed to signify an
ongoing condition.
|
String |
toString() |
public String toString()
toString in class ObjectAlertMonitor.Eventpublic String getDetailedHistory()
AlertMonitor.Eventspublic AlertMonitor.AlertLevel getLevel()
public long getFirstEventTime()
public long getLastEventTime()
public long getDuration()
public List<AlertMonitor.Event> getEventList()
public AlertMonitor.Event getFirstEvent()
null
if there have been no events.public AlertMonitor.Event getLastEvent()
null if
there have been no events.public int getCount()
public void poll(long now,
boolean force)
AlertMonitor.getErrorLogTimeInterval() or
AlertMonitor.getWarnLogTimeInterval().now - current system time as returned by
System.currentTimeMillis()force - if true and the level is WARN or ERROR, this
method emits a notification regardless of whether the
notification interval has elapsed; otherwise this method
does nothing unless the interval has elapsed.Copyright © 2025 Open Identity Platform Community. All rights reserved.