Package codes.grow.packages.datadoglogs
Record Class DatadogLogExporter.Limits
java.lang.Object
java.lang.Record
codes.grow.packages.datadoglogs.DatadogLogExporter.Limits
- Record Components:
maxEntriesPerRequest- entries per request, at most 1000maxPayloadBytes- uncompressed bytes per request, at most 5 000 000maxLogBytes- 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 Summary
ConstructorsConstructorDescriptionLimits(int maxEntriesPerRequest, int maxPayloadBytes, int maxLogBytes) Creates limits, capped at the Datadog limits. -
Method Summary
Modifier and TypeMethodDescriptionstatic DatadogLogExporter.Limitsdefaults()The Datadog limits (1000 entries, 5 000 000 bytes, 1 000 000 bytes per log).final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxEntriesPerRequestrecord component.intReturns the value of themaxLogBytesrecord component.intReturns the value of themaxPayloadBytesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Limits
public Limits(int maxEntriesPerRequest, int maxPayloadBytes, int maxLogBytes) Creates limits, capped at the Datadog limits.- Parameters:
maxEntriesPerRequest- entries per requestmaxPayloadBytes- payload bytesmaxLogBytes- bytes per entry- Throws:
ValidationException- when a value is below 1
-
-
Method Details
-
defaults
The Datadog limits (1000 entries, 5 000 000 bytes, 1 000 000 bytes per log).- Returns:
- the defaults
-
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. All components in this record class are compared with '=='. -
maxEntriesPerRequest
public int maxEntriesPerRequest()Returns the value of themaxEntriesPerRequestrecord component.- Returns:
- the value of the
maxEntriesPerRequestrecord component
-
maxPayloadBytes
public int maxPayloadBytes()Returns the value of themaxPayloadBytesrecord component.- Returns:
- the value of the
maxPayloadBytesrecord component
-
maxLogBytes
public int maxLogBytes()Returns the value of themaxLogBytesrecord component.- Returns:
- the value of the
maxLogBytesrecord component
-