Record Class RoutingHTTPCall

java.lang.Object
java.lang.Record
com.mxraven.mail.notify.RoutingHTTPCall
Record Components:
endpoint - endpoint reference the script named
status - HTTP response status, or zero when no response was received
durationMs - wall-clock duration in milliseconds
requestBytes - request body size in bytes
responseBytes - response body size in bytes, capped by the platform
error - transport failure description, when the call failed
cached - whether an identical earlier call in the same transaction answered this one, so the endpoint was called only once

public record RoutingHTTPCall(String endpoint, int status, long durationMs, int requestBytes, int responseBytes, String error, boolean cached) extends Record
The audit record of one mx.http call. Response bodies are never recorded.
  • Constructor Details

    • RoutingHTTPCall

      public RoutingHTTPCall(String endpoint, int status, long durationMs, int requestBytes, int responseBytes, String error, boolean cached)
      Creates an instance of a RoutingHTTPCall record class.
      Parameters:
      endpoint - the value for the endpoint record component
      status - the value for the status record component
      durationMs - the value for the durationMs record component
      requestBytes - the value for the requestBytes record component
      responseBytes - the value for the responseBytes record component
      error - the value for the error record component
      cached - the value for the cached record component
  • Method Details

    • 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.
    • endpoint

      public String endpoint()
      Returns the value of the endpoint record component.
      Returns:
      the value of the endpoint record component
    • status

      public int status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • durationMs

      public long durationMs()
      Returns the value of the durationMs record component.
      Returns:
      the value of the durationMs record component
    • requestBytes

      public int requestBytes()
      Returns the value of the requestBytes record component.
      Returns:
      the value of the requestBytes record component
    • responseBytes

      public int responseBytes()
      Returns the value of the responseBytes record component.
      Returns:
      the value of the responseBytes record component
    • error

      public String error()
      Returns the value of the error record component.
      Returns:
      the value of the error record component
    • cached

      public boolean cached()
      Returns the value of the cached record component.
      Returns:
      the value of the cached record component