Package codes.grow.packages.datadoglogs
Record Class DatadogLogExporter.EncodedBatch
java.lang.Object
java.lang.Record
codes.grow.packages.datadoglogs.DatadogLogExporter.EncodedBatch
- Record Components:
payloads- request bodies in orderoversized- records whose metadata alone exceeds the per-log limit (never sent)truncated- entries whose message was truncated (grow.truncated: true)
- Enclosing class:
DatadogLogExporter
public static record DatadogLogExporter.EncodedBatch(List<DatadogLogExporter.IntakePayload> payloads, int oversized, int truncated)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEncodedBatch(List<DatadogLogExporter.IntakePayload> payloads, int oversized, int truncated) Creates the result; the list is copied. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theoversizedrecord component.payloads()Returns the value of thepayloadsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetruncatedrecord component.
-
Constructor Details
-
EncodedBatch
Creates the result; the list is copied.- Parameters:
payloads- request bodiesoversized- dropped recordstruncated- truncated entries
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
payloads
Returns the value of thepayloadsrecord component.- Returns:
- the value of the
payloadsrecord component
-
oversized
public int oversized()Returns the value of theoversizedrecord component.- Returns:
- the value of the
oversizedrecord component
-
truncated
public int truncated()Returns the value of thetruncatedrecord component.- Returns:
- the value of the
truncatedrecord component
-