Interface MonitoringSession
- All Superinterfaces:
- LogFilterSettings
A monitoring session is a way for us to set levels and filters on the logging system, and have them timeout after a
 certain period of time.
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Closes and destroys the monitoring session.getId()An id that can be used to retrieve the session again if necessary.getLogMessages(long sinceTime) Returns the events observed since the given timestamp.voidCalled periodically to keep the session from expiring.voidreset()Resets all logging levels and clears all filters.Methods inherited from interface com.inductiveautomation.ignition.common.logging.LogFilterSettingsaddPropertyFilter, clearPropertyLevel, clearPropertyLevels, propertyFilterSettings, removePropertyFilter, setLevel, setPropertyLevel
- 
Method Details- 
getIdString getId()An id that can be used to retrieve the session again if necessary. Can be serialized across page loads or into a gateway session, for example.
- 
keepalivevoid keepalive()Called periodically to keep the session from expiring. Note that other actions taken on this class also keep the session alive, so calling this function is not necessary if you are routinely collecting events.
- 
resetvoid reset()Resets all logging levels and clears all filters.
- 
closevoid close()Closes and destroys the monitoring session.
- 
getLogMessagesReturns the events observed since the given timestamp. The events are held in memory, so there is a certain point where events will no longer be available.- Returns:
- The observed events, with the newest events first.
 
 
-