Class DiagnosticsSample
java.lang.Object
com.inductiveautomation.ignition.common.DiagnosticsSample
- All Implemented Interfaces:
Serializable
DiagnosticSample is a tree of data about a target. To begin, create a sample wiht DiagnosticSample.newSample().
You can add messages, metrics, values, etc to a sample, and then use getSubSample() to get a deeper level of the
tree.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
add
(StringPath path, DiagnosticsSample.Diagnostic value) protected void
add
(String name, Object value, DiagnosticsSample.DiagnosticLevel level) void
void
void
addMessage
(String name, String value, DiagnosticsSample.DiagnosticLevel level) void
addMetric
(String name, StatMetric metric, DiagnosticsSample.DiagnosticLevel level) void
addValue
(String name, QualifiedValue value) Add the value, and sets the level based on whether or not the quality is good.void
addValue
(String name, QualifiedValue value, DiagnosticsSample.DiagnosticLevel level) abstract PathTree<StringPath,
DiagnosticsSample.Diagnostic> getName()
getSubSample
(String name) static DiagnosticsSample
-
Method Details
-
newSample
-
getName
-
addMetric
-
addMessage
-
addValue
-
addInfo
-
addError
-
addValue
Add the value, and sets the level based on whether or not the quality is good. Good will be "info", and bad will be "error". -
add
-
add
-
getDiagnostics
-
getSubSample
-