Class ProjectScriptDiagnostic
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.script.ProjectScriptDiagnostic
 
- 
 public class ProjectScriptDiagnostic extends java.lang.ObjectUsed in the gateway status section to show information about gateway-run project scripts.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classProjectScriptDiagnostic.DiagnosticTypestatic classProjectScriptDiagnostic.GsonEncoder
 - 
Constructor SummaryConstructors 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringget(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.LonggetDuration()The duration of the last execution of this script, in ms.java.lang.StringgetErrorMessage()The last error message produced when this script was executed.java.lang.LonggetLastExecution()The timestamp when this script last executed, in ms.java.lang.StringgetName()java.lang.StringgetProjectName()intgetType()booleanisEnabled()voidput(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.DiagnosticTypeinstead.
 - 
ProjectScriptDiagnosticpublic ProjectScriptDiagnostic(ProjectScriptDiagnostic.DiagnosticType type, java.lang.String name, java.lang.String projectName, boolean enabled, ScriptExecutionReport executionReport) 
 
- 
 - 
Method Detail- 
getTypepublic int getType() 
 - 
getNamepublic java.lang.String getName() 
 - 
getpublic java.lang.String get(java.lang.String key) Get some useful information about the script, depending on its type.
 - 
getDetailspublic java.util.Map<java.lang.String,java.lang.String> getDetails() 
 - 
putpublic void put(java.lang.String key, java.lang.String value)
 - 
getProjectNamepublic java.lang.String getProjectName() 
 - 
getLastExecutionpublic java.lang.Long getLastExecution() The timestamp when this script last executed, in ms.
 - 
getDurationpublic java.lang.Long getDuration() The duration of the last execution of this script, in ms.- Returns:
- null if the script has not run.
 
 - 
getErrorMessagepublic 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.
 
 - 
isEnabledpublic boolean isEnabled() 
 
- 
 
-