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