Record Class DatadogLogExporter.Limits

java.lang.Object
java.lang.Record
codes.grow.packages.datadoglogs.DatadogLogExporter.Limits
Record Components:
maxEntriesPerRequest - entries per request, at most 1000
maxPayloadBytes - uncompressed bytes per request, at most 5 000 000
maxLogBytes - serialized bytes per entry before truncation, at most 1 000 000
Enclosing class:
DatadogLogExporter

public static record DatadogLogExporter.Limits(int maxEntriesPerRequest, int maxPayloadBytes, int maxLogBytes) extends Record
Request limits; values above the Datadog limits are capped.
  • Constructor Details

    • Limits

      public Limits(int maxEntriesPerRequest, int maxPayloadBytes, int maxLogBytes)
      Creates limits, capped at the Datadog limits.
      Parameters:
      maxEntriesPerRequest - entries per request
      maxPayloadBytes - payload bytes
      maxLogBytes - bytes per entry
      Throws:
      ValidationException - when a value is below 1
  • Method Details

    • defaults

      public static DatadogLogExporter.Limits defaults()
      The Datadog limits (1000 entries, 5 000 000 bytes, 1 000 000 bytes per log).
      Returns:
      the defaults
    • 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 '=='.
      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.
    • maxEntriesPerRequest

      public int maxEntriesPerRequest()
      Returns the value of the maxEntriesPerRequest record component.
      Returns:
      the value of the maxEntriesPerRequest record component
    • maxPayloadBytes

      public int maxPayloadBytes()
      Returns the value of the maxPayloadBytes record component.
      Returns:
      the value of the maxPayloadBytes record component
    • maxLogBytes

      public int maxLogBytes()
      Returns the value of the maxLogBytes record component.
      Returns:
      the value of the maxLogBytes record component