Class LogResults
- java.lang.Object
-
- com.inductiveautomation.ignition.common.logging.LogResults
-
- All Implemented Interfaces:
java.io.Serializable
public class LogResults extends java.lang.Object implements java.io.Serializable
The results of a query to the logging system. Contains a set of events, and potentially an estimate of the total number of events that might be available, if the filter set a limit.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LogResults(java.util.List<LogEvent> events)
LogResults(java.util.List<LogEvent> events, int estimatedTotalResults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getEstimatedTotalResults()
If the query was page limited (limitPageTo() on the LogQueryConfig builder), and would have had more results, this is an estimate of the number.java.util.List<LogEvent>
getEvents()
-
-
-
Method Detail
-
getEvents
public java.util.List<LogEvent> getEvents()
-
getEstimatedTotalResults
public int getEstimatedTotalResults()
If the query was page limited (limitPageTo() on the LogQueryConfig builder), and would have had more results, this is an estimate of the number. If the underlying system can't provide this information, this will return 0. Also, this is only expected to be calculated the "first" time, which generally means when pageLimit!=0 and offset==0 on the filter.
-
-