Package codes.grow.packages.datadoglogs
Record Class DatadogQueryMeta
java.lang.Object
java.lang.Record
codes.grow.packages.datadoglogs.DatadogQueryMeta
- Record Components:
nextCursor- cursor of the next page (meta.page.after); empty on the last pagestatus-done, ortimeoutfor partial resultswarnings- non-fatal warnings (results may be partial)requestId-meta.request_id, else the response request-id headerelapsed- server time (meta.elapsed)
public record DatadogQueryMeta(Optional<String> nextCursor, Optional<String> status, List<DatadogWarning> warnings, Optional<String> requestId, Optional<Duration> elapsed)
extends Record
Response metadata shared by search and aggregate (
meta).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionelapsed()Returns the value of theelapsedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenextCursorrecord component.Returns the value of therequestIdrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
DatadogQueryMeta
public DatadogQueryMeta(Optional<String> nextCursor, Optional<String> status, List<DatadogWarning> warnings, Optional<String> requestId, Optional<Duration> elapsed) Creates the metadata; null optionals become empty and the list is copied.- Parameters:
nextCursor- next cursorstatus- statuswarnings- warningsrequestId- request idelapsed- server time
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
nextCursor
Returns the value of thenextCursorrecord component.- Returns:
- the value of the
nextCursorrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
warnings
Returns the value of thewarningsrecord component.- Returns:
- the value of the
warningsrecord component
-
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
elapsed
Returns the value of theelapsedrecord component.- Returns:
- the value of the
elapsedrecord component
-