Record Class AgentSelector

java.lang.Object
java.lang.Record
io.fluxzero.devserver.AgentSelector
Record Components:
serviceIds - application or infrastructure service identifiers
instanceIds - concrete application instance identifiers
sources - subsystems such as compile, app, test, or runtime
minimumLevel - minimum event/problem level

public record AgentSelector(Set<String> serviceIds, Set<String> instanceIds, Set<String> sources, DevLogEvent.Level minimumLevel) extends Record
Optional filters for agent queries across applications and infrastructure services.
  • Constructor Details

    • AgentSelector

      public AgentSelector(Set<String> serviceIds, Set<String> instanceIds, Set<String> sources, DevLogEvent.Level minimumLevel)
      Creates an instance of a AgentSelector record class.
      Parameters:
      serviceIds - the value for the serviceIds record component
      instanceIds - the value for the instanceIds record component
      sources - the value for the sources record component
      minimumLevel - the value for the minimumLevel record component
  • Method Details

    • all

      public static AgentSelector all()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • serviceIds

      public Set<String> serviceIds()
      Returns the value of the serviceIds record component.
      Returns:
      the value of the serviceIds record component
    • instanceIds

      public Set<String> instanceIds()
      Returns the value of the instanceIds record component.
      Returns:
      the value of the instanceIds record component
    • sources

      public Set<String> sources()
      Returns the value of the sources record component.
      Returns:
      the value of the sources record component
    • minimumLevel

      public DevLogEvent.Level minimumLevel()
      Returns the value of the minimumLevel record component.
      Returns:
      the value of the minimumLevel record component