Record Class EventStreamDiagnostics
java.lang.Object
java.lang.Record
com.inductiveautomation.eventstream.EventStreamDiagnostics
- Record Components:
project
- Project Event Stream belongs topath
- Path to Event Stream resourcestate
- Current state of Event StreamstageDiagnostics
- Map of stage name toStageDiagnostics
public record EventStreamDiagnostics(String project, String path, String state, Map<String,StageDiagnostics> stageDiagnostics)
extends Record
Contains diagnostics data for an Event Stream and all it's included stages
-
Constructor Summary
ConstructorsConstructorDescriptionEventStreamDiagnostics
(String project, String path, String state, Map<String, StageDiagnostics> stageDiagnostics) Creates an instance of aEventStreamDiagnostics
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getStageDiagnostics
(String stageName) Get theStageDiagnostics
for a specific stagefinal int
hashCode()
Returns a hash code value for this object.mostRecentErrors
(int count) Combines the errors from all stages and returns the most recentpath()
Returns the value of thepath
record component.project()
Returns the value of theproject
record component.Returns the value of thestageDiagnostics
record component.state()
Returns the value of thestate
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
EventStreamDiagnostics
public EventStreamDiagnostics(String project, String path, String state, Map<String, StageDiagnostics> stageDiagnostics) Creates an instance of aEventStreamDiagnostics
record class.- Parameters:
project
- the value for theproject
record componentpath
- the value for thepath
record componentstate
- the value for thestate
record componentstageDiagnostics
- the value for thestageDiagnostics
record component
-
-
Method Details
-
mostRecentErrors
Combines the errors from all stages and returns the most recent- Parameters:
count
- Max amount of errors to return- Returns:
- Errors sorted from most recent to oldest
-
getStageDiagnostics
Get theStageDiagnostics
for a specific stage- Parameters:
stageName
- Name of the stage- Returns:
- StageDiagnostics or null if not found
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
project
Returns the value of theproject
record component.- Returns:
- the value of the
project
record component
-
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-
state
Returns the value of thestate
record component.- Returns:
- the value of the
state
record component
-
stageDiagnostics
Returns the value of thestageDiagnostics
record component.- Returns:
- the value of the
stageDiagnostics
record component
-