Class ProjectScriptDiagnostic
java.lang.Object
com.inductiveautomation.ignition.common.script.ProjectScriptDiagnostic
Used in the gateway status section to show information about gateway-run project scripts.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static class
-
Constructor Summary
ConstructorsConstructorDescriptionProjectScriptDiagnostic
(int type, String name, String projectName, boolean enabled, ScriptExecutionReport executionReport) Deprecated.ProjectScriptDiagnostic
(ProjectScriptDiagnostic.DiagnosticType type, String name, String projectName, boolean enabled, ScriptExecutionReport executionReport) -
Method Summary
Modifier and TypeMethodDescriptionGet some useful information about the script, depending on its type.The duration of the last execution of this script, in ms.The last error message produced when this script was executed.The timestamp when this script last executed, in ms.getName()
int
getType()
boolean
void
-
Constructor Details
-
ProjectScriptDiagnostic
@Deprecated public ProjectScriptDiagnostic(int type, String name, String projectName, boolean enabled, ScriptExecutionReport executionReport) Deprecated.Deprecated; prefer the constructor that accepts aProjectScriptDiagnostic.DiagnosticType
instead. -
ProjectScriptDiagnostic
public ProjectScriptDiagnostic(ProjectScriptDiagnostic.DiagnosticType type, String name, String projectName, boolean enabled, ScriptExecutionReport executionReport)
-
-
Method Details
-
getType
public int getType() -
getName
-
get
Get some useful information about the script, depending on its type. -
getDetails
-
put
-
getProjectName
-
getLastExecution
The timestamp when this script last executed, in ms. -
getDuration
The duration of the last execution of this script, in ms.- Returns:
- null if the script has not run.
-
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.
-
isEnabled
public boolean isEnabled()
-