Package codes.grow.packages.datadoglogs
Record Class DatadogLogExporter.IntakePayload
java.lang.Object
java.lang.Record
codes.grow.packages.datadoglogs.DatadogLogExporter.IntakePayload
- Record Components:
body- the JSON array textentries- entries in the arraybytes- UTF-8 bytes of the body
- Enclosing class:
DatadogLogExporter
public static record DatadogLogExporter.IntakePayload(String body, int entries, int bytes)
extends Record
One intake request body before compression.
-
Constructor Summary
ConstructorsConstructorDescriptionIntakePayload(String body, int entries, int bytes) Creates an instance of aIntakePayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.intbytes()Returns the value of thebytesrecord component.intentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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 '=='. -
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
entries
public int entries()Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-
bytes
public int bytes()Returns the value of thebytesrecord component.- Returns:
- the value of the
bytesrecord component
-