Class ProjectScriptDiagnostic

java.lang.Object
com.inductiveautomation.ignition.common.script.ProjectScriptDiagnostic

public class ProjectScriptDiagnostic extends Object
A snapshot of one gateway-run project script: what it is, whether it is enabled, whatever configuration is specific to its kind, and the report from its most recent execution only. There is no run history behind any of it.

ProjectScriptDiagnostic.GsonEncoder is the wire contract for the gateway status routes. It flattens ProjectScriptDiagnostic.Details into a details object whose keys depend on the script kind, and always emits that object even when there is nothing to report.

  • Constructor Details

  • Method Details

    • getType

      public int getType()
    • getName

      public String getName()
    • getDetails

      public @Nullable ProjectScriptDiagnostic.Details getDetails()
      The configuration specific to this script's kind.
      Returns:
      null when its kind has none.
    • getProjectName

      public String getProjectName()
    • getLastExecution

      public Long getLastExecution()
      The timestamp when this script last executed, in ms.
    • getDuration

      public Long getDuration()
      The duration of the last execution of this script, in ms.
      Returns:
      null if the script has not run.
    • getErrorMessage

      public String getErrorMessage()
      The last error message produced when this script was executed.
      Returns:
      null if the script has not run, or if there was no error.
    • getStacktrace

      public List<String> getStacktrace()
      Returns:
      the stack as an array, with each line as a string element, or an empty list if the script has not run or has no error
    • isEnabled

      public boolean isEnabled()