Package codes.grow.packages.datadogapm
Record Class AggregateSpansOptions
java.lang.Object
java.lang.Record
codes.grow.packages.datadogapm.AggregateSpansOptions
- Record Components:
query- span query (nullmeans*)from- window start (null: 15 minutes ago)to- window end (null: now)timezone- timezone (nullmeansUTC)
public record AggregateSpansOptions(String query, Optional<DatadogTime> from, Optional<DatadogTime> to, String timezone)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAggregateSpansOptions(String query, Optional<DatadogTime> from, Optional<DatadogTime> to, String timezone) Fills the defaults. -
Method Summary
Modifier and TypeMethodDescriptionstatic AggregateSpansOptionsdefaults()The defaults: all spans of the last 15 minutes, UTC.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.static AggregateSpansOptionsof(String query, DatadogTime from, DatadogTime to) Options from nullable values.query()Returns the value of thequeryrecord component.timezone()Returns the value of thetimezonerecord component.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AggregateSpansOptions
public AggregateSpansOptions(String query, Optional<DatadogTime> from, Optional<DatadogTime> to, String timezone) Fills the defaults.- Parameters:
query- queryfrom- startto- endtimezone- timezone
-
-
Method Details
-
of
Options from nullable values.- Parameters:
query- query ornullfrom- start ornullto- end ornull- Returns:
- options
-
defaults
The defaults: all spans of the last 15 minutes, UTC.- Returns:
- options
-
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). -
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
timezone
Returns the value of thetimezonerecord component.- Returns:
- the value of the
timezonerecord component
-