Class LogQueryConfig.LogQueryConfigBuilder
java.lang.Object
com.inductiveautomation.ignition.common.logging.LogQueryConfig.LogQueryConfigBuilder
- Enclosing class:
- LogQueryConfig
-
Method Summary
Modifier and TypeMethodDescriptionbetweenTime
(long startTime, long endTime) build()
eventsForSystems
(String... systemIds) System events are those logged through LoggerEx's infoEvent, warnEvent, errorEvent functions.fromString
(String text) A search method that does a text-based search of log event columns containing the matching text, which is first split into tokens if space, tab or comma delimiters are found in the text.limitPageTo
(int limit) This version of limit will limit the result set to the provided value, but if offset is 0, will also attempt to calculate the full resultset size.limitTo
(int limit) This sets a limit on the result set, and can be used along with offset.newerThan
(long time) olderThan
(long time) startingAt
(int offset) withAnyProperties
(String... keyValues) Filters a set of property/value pairs.withinLast
(long time, TimeUnits units)
-
Method Details
-
newerThan
-
olderThan
-
betweenTime
-
withinLast
-
atOrAbove
-
withAnyProperties
Filters a set of property/value pairs. Must be provided in pairs, the value can include wildcards. They will be treated as "or" conditions, if you want to restrict the results to have all of the properties, additional filtering will have to be done on the results. -
eventsForSystems
System events are those logged through LoggerEx's infoEvent, warnEvent, errorEvent functions. This function takes a list of system ids to allow in the query. -
forLogger
-
limitTo
This sets a limit on the result set, and can be used along with offset. Note: This function does not attempt to calculate the total return set size that would occur without the limit. For that, use limitPageTo(). -
limitPageTo
This version of limit will limit the result set to the provided value, but if offset is 0, will also attempt to calculate the full resultset size. -
startingAt
-
fromString
A search method that does a text-based search of log event columns containing the matching text, which is first split into tokens if space, tab or comma delimiters are found in the text. Current implementation executes each term as a LIKE clause, which may be very expensive if a large number of terms are parsed from the text or the columns are not indexed. -
withTerm
-
build
-