Class LogRetrievalStrategy

    • Constructor Detail

      • LogRetrievalStrategy

        protected LogRetrievalStrategy()
    • Method Detail

      • RetrieveLogs

        @ThingworxExtensionApiMethod(since={9,6},
                                     canOverride=true)
        public InfoTable RetrieveLogs​(java.lang.Double maxItems,
                                      org.joda.time.DateTime startDate,
                                      org.joda.time.DateTime endDate,
                                      java.lang.String fromLogLevel,
                                      java.lang.String toLogLevel,
                                      java.lang.String user,
                                      java.lang.String thread,
                                      java.lang.String platformId,
                                      java.lang.String origin,
                                      java.lang.String instance,
                                      java.lang.String searchExpression,
                                      java.lang.String sortFieldName,
                                      java.lang.Boolean ascendingSearch,
                                      java.lang.Boolean oldestFirst,
                                      java.lang.Boolean isRegex,
                                      java.lang.String logName)
                               throws java.lang.Exception
        Service Category:
        Queries
        Service Description:
        Retrieve Logs from the given source.
        Parameters:
        maxItems - Maximum number of items to return - NUMBER
        startDate - Start time - DATETIME
        endDate - End time - DATETIME
        fromLogLevel - From log level - STRING
        toLogLevel - To log level - STRING
        user - Log messages for a specific user - USERNAME
        thread - Log messages for a specific thread - STRING
        platformId - Log message from a specific instance - STRING
        origin - Specific class or log source - STRING
        instance - Specific class or log source - STRING
        searchExpression - Keywords to search content - STRING
        sortFieldName - Sort field name - STRING
        ascendingSearch - Ascending search indicator (true = ascending, false = descending) - BOOLEAN
        oldestFirst - Search/sort from oldest to newest - BOOLEAN
        isRegex - The Search expression should be treated as REGEX - BOOLEAN
        logName - Keywords to search content - STRING
        Returns:
        result Table entries - INFOTABLE - Aspects {dataShape:LogEntry}
        Throws:
        java.lang.Exception - If an error occurs