Record Class TableCountDto

java.lang.Object
java.lang.Record
io.datarouter.instrumentation.tablecount.TableCountDto

public record TableCountDto(String serviceName, String clientName, String tableName, Long numRows, Instant dateUpdated, Long countTimeMs, Long numSpans, Long numSlowSpans) extends Record
  • Constructor Details

    • TableCountDto

      public TableCountDto(String serviceName, String clientName, String tableName, Long numRows, Instant dateUpdated, Long countTimeMs, Long numSpans, Long numSlowSpans)
      Creates an instance of a TableCountDto record class.
      Parameters:
      serviceName - the value for the serviceName record component
      clientName - the value for the clientName record component
      tableName - the value for the tableName record component
      numRows - the value for the numRows record component
      dateUpdated - the value for the dateUpdated record component
      countTimeMs - the value for the countTimeMs record component
      numSpans - the value for the numSpans record component
      numSlowSpans - the value for the numSlowSpans record component
  • Method Details

    • getDateUpdate

      public Date getDateUpdate()
    • 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.
    • serviceName

      public String serviceName()
      Returns the value of the serviceName record component.
      Returns:
      the value of the serviceName record component
    • clientName

      public String clientName()
      Returns the value of the clientName record component.
      Returns:
      the value of the clientName record component
    • tableName

      public String tableName()
      Returns the value of the tableName record component.
      Returns:
      the value of the tableName record component
    • numRows

      public Long numRows()
      Returns the value of the numRows record component.
      Returns:
      the value of the numRows record component
    • dateUpdated

      public Instant dateUpdated()
      Returns the value of the dateUpdated record component.
      Returns:
      the value of the dateUpdated record component
    • countTimeMs

      public Long countTimeMs()
      Returns the value of the countTimeMs record component.
      Returns:
      the value of the countTimeMs record component
    • numSpans

      public Long numSpans()
      Returns the value of the numSpans record component.
      Returns:
      the value of the numSpans record component
    • numSlowSpans

      public Long numSlowSpans()
      Returns the value of the numSlowSpans record component.
      Returns:
      the value of the numSlowSpans record component