Package codes.grow.packages.datadogapm
Record Class GetTraceOptions
java.lang.Object
java.lang.Record
codes.grow.packages.datadogapm.GetTraceOptions
- Record Components:
preview- use the preview trace-by-id endpointGET /api/v2/trace/{id}(full trace,x-unstable, 60 requests/minute) instead of searching the indexed spansfrom- search window start (search mode; default 24 hours ago)to- search window end (search mode; default now)
public record GetTraceOptions(boolean preview, Optional<DatadogTime> from, Optional<DatadogTime> to)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGetTraceOptions(boolean preview, Optional<DatadogTime> from, Optional<DatadogTime> to) Fills the defaults. -
Method Summary
Modifier and TypeMethodDescriptionstatic GetTraceOptionsdefaults()Search mode (the default) over the last 24 hours.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.booleanpreview()Returns the value of thepreviewrecord component.static GetTraceOptionsThe preview trace-by-id endpoint.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.static GetTraceOptionswindow(DatadogTime from, DatadogTime to) Search mode over a window.
-
Constructor Details
-
GetTraceOptions
Fills the defaults.- Parameters:
preview- preview modefrom- startto- end
-
-
Method Details
-
defaults
Search mode (the default) over the last 24 hours.- Returns:
- options
-
previewApi
The preview trace-by-id endpoint.- Returns:
- options
-
window
Search mode over a window.- Parameters:
from- start ornullto- end ornull- 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
preview
public boolean preview()Returns the value of thepreviewrecord component.- Returns:
- the value of the
previewrecord 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
-