Record Class DatadogAggregateResult

java.lang.Object
java.lang.Record
codes.grow.packages.datadoglogs.DatadogAggregateResult
Record Components:
buckets - buckets
meta - response metadata

public record DatadogAggregateResult(List<DatadogBucket> buckets, DatadogQueryMeta meta) extends Record
  • Constructor Details

    • DatadogAggregateResult

      public DatadogAggregateResult(List<DatadogBucket> buckets, DatadogQueryMeta meta)
      Creates the result; the list is copied.
      Parameters:
      buckets - buckets
      meta - metadata
  • Method Details

    • nextCursor

      public Optional<String> nextCursor()
      Returns the cursor of the next page of buckets.
      Returns:
      the cursor, or empty
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • buckets

      public List<DatadogBucket> buckets()
      Returns the value of the buckets record component.
      Returns:
      the value of the buckets record component
    • meta

      public DatadogQueryMeta meta()
      Returns the value of the meta record component.
      Returns:
      the value of the meta record component