Class LogRetrievalStrategy

All Implemented Interfaces:
ISupportsAccessModifier, IConfigurableObject, INotScriptFriendly, ISupportsDeprecation, IDiffableObject, IAlertProvider, IAvatar, IEntityLifeCycleEvent, IEventMetadataProvider, IEventProvider, IPersistable, IPropertyProvider, IServiceMetadataProvider, IServiceProvider, IShapeProvider, ITaggableObject, IDependencyScannableObject, IImportDependencyHandler, IHierarchicalEntity, IEntityDefinition, IPersistableObject<String>, IDesignTimeSecurable, IDesignTimeSecurableEntity, IRunTimeSecurable, IRunTimeSecurableEntity, ISecurable, IVisibilitySecurable, IVisibilitySecurableEntity, IEventProcessor, IAspectContainer, INamedObject, Serializable

@ThingworxExtensionApiClass(since={9,6}, canExtendOrImplement=true) public class LogRetrievalStrategy extends Thing
See Also:
  • Constructor Details

    • LogRetrievalStrategy

      protected LogRetrievalStrategy()
  • Method Details

    • RetrieveLogs

      @ThingworxExtensionApiMethod(since={9,6}, canOverride=true) public InfoTable RetrieveLogs(Double maxItems, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, String fromLogLevel, String toLogLevel, String user, String thread, String platformId, String origin, String instance, String searchExpression, String sortFieldName, Boolean ascendingSearch, Boolean oldestFirst, Boolean isRegex, String logName) throws 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:
      Exception - If an error occurs