Package codes.grow.packages.datadoglogs
Record Class DatadogAggregateResult
java.lang.Object
java.lang.Record
codes.grow.packages.datadoglogs.DatadogAggregateResult
- Record Components:
buckets- bucketsmeta- response metadata
public record DatadogAggregateResult(List<DatadogBucket> buckets, DatadogQueryMeta meta)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDatadogAggregateResult(List<DatadogBucket> buckets, DatadogQueryMeta meta) Creates the result; the list is copied. -
Method Summary
Modifier and TypeMethodDescriptionbuckets()Returns the value of thebucketsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.meta()Returns the value of themetarecord component.Returns the cursor of the next page of buckets.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatadogAggregateResult
Creates the result; the list is copied.- Parameters:
buckets- bucketsmeta- metadata
-
-
Method Details
-
nextCursor
Returns the cursor of the next page of buckets.- Returns:
- the cursor, or empty
-
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). -
buckets
Returns the value of thebucketsrecord component.- Returns:
- the value of the
bucketsrecord component
-
meta
Returns the value of themetarecord component.- Returns:
- the value of the
metarecord component
-