Package codes.grow.packages.datadoglogs
Record Class DatadogLogsPage
java.lang.Object
java.lang.Record
codes.grow.packages.datadoglogs.DatadogLogsPage
- Record Components:
events- events as returned by Datadog (flattened), in the requested ordermeta- response metadata (next cursor, status, warnings, request id)
-
Constructor Summary
ConstructorsConstructorDescriptionDatadogLogsPage(List<DatadogLogEvent> events, DatadogQueryMeta meta) Creates a page; the list is copied. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.meta()Returns the value of themetarecord component.Returns the cursor of the next page; pass it back with the same filter and sort.records()Returns the events normalized to log records.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatadogLogsPage
Creates a page; the list is copied.- Parameters:
events- eventsmeta- metadata
-
-
Method Details
-
records
Returns the events normalized to log records.- Returns:
- a new list
-
nextCursor
Returns the cursor of the next page; pass it back with the same filter and sort.- Returns:
- the cursor, or empty on the last page
-
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 withObjects::equals(Object,Object). -
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
meta
Returns the value of themetarecord component.- Returns:
- the value of the
metarecord component
-