Record Class HttpStats.ClientStats

java.lang.Object
java.lang.Record
org.elasticsearch.http.HttpStats.ClientStats
All Implemented Interfaces:
Writeable, ToXContent, ToXContentFragment
Enclosing class:
HttpStats

public static record HttpStats.ClientStats(int id, String agent, String localAddress, String remoteAddress, String lastUri, String forwardedFor, String opaqueId, long openedTimeMillis, long closedTimeMillis, long lastRequestTimeMillis, long requestCount, long requestSizeBytes) extends Record implements Writeable, ToXContentFragment
  • Field Details

  • Constructor Details

    • ClientStats

      public ClientStats(int id, String agent, String localAddress, String remoteAddress, String lastUri, String forwardedFor, String opaqueId, long openedTimeMillis, long closedTimeMillis, long lastRequestTimeMillis, long requestCount, long requestSizeBytes)
      Creates an instance of a ClientStats record class.
      Parameters:
      id - the value for the id record component
      agent - the value for the agent record component
      localAddress - the value for the localAddress record component
      remoteAddress - the value for the remoteAddress record component
      lastUri - the value for the lastUri record component
      forwardedFor - the value for the forwardedFor record component
      opaqueId - the value for the opaqueId record component
      openedTimeMillis - the value for the openedTimeMillis record component
      closedTimeMillis - the value for the closedTimeMillis record component
      lastRequestTimeMillis - the value for the lastRequestTimeMillis record component
      requestCount - the value for the requestCount record component
      requestSizeBytes - the value for the requestSizeBytes record component
  • Method Details

    • toXContent

      public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface ToXContent
      Throws:
      IOException
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • id

      public int id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • agent

      public String agent()
      Returns the value of the agent record component.
      Returns:
      the value of the agent record component
    • localAddress

      public String localAddress()
      Returns the value of the localAddress record component.
      Returns:
      the value of the localAddress record component
    • remoteAddress

      public String remoteAddress()
      Returns the value of the remoteAddress record component.
      Returns:
      the value of the remoteAddress record component
    • lastUri

      public String lastUri()
      Returns the value of the lastUri record component.
      Returns:
      the value of the lastUri record component
    • forwardedFor

      public String forwardedFor()
      Returns the value of the forwardedFor record component.
      Returns:
      the value of the forwardedFor record component
    • opaqueId

      public String opaqueId()
      Returns the value of the opaqueId record component.
      Returns:
      the value of the opaqueId record component
    • openedTimeMillis

      public long openedTimeMillis()
      Returns the value of the openedTimeMillis record component.
      Returns:
      the value of the openedTimeMillis record component
    • closedTimeMillis

      public long closedTimeMillis()
      Returns the value of the closedTimeMillis record component.
      Returns:
      the value of the closedTimeMillis record component
    • lastRequestTimeMillis

      public long lastRequestTimeMillis()
      Returns the value of the lastRequestTimeMillis record component.
      Returns:
      the value of the lastRequestTimeMillis record component
    • requestCount

      public long requestCount()
      Returns the value of the requestCount record component.
      Returns:
      the value of the requestCount record component
    • requestSizeBytes

      public long requestSizeBytes()
      Returns the value of the requestSizeBytes record component.
      Returns:
      the value of the requestSizeBytes record component