Package com.datadog.api.client.v2.model
Class SummarizedSpan
java.lang.Object
com.datadog.api.client.v2.model.SummarizedSpan
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SummarizedSpan
extends Object
A node in the pruned trace tree.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringboolean -
Constructor Summary
ConstructorsConstructorDescriptionSummarizedSpan(List<SummarizedSpan> children, Double durationSeconds, OffsetDateTime endTime, APMSpanErrorFlag error, Integer hiddenChildSpansCount, Map<String, String> meta, Map<String, Double> metrics, String name, Long parentId, String resource, String service, Long spanId, String spanKind, OffsetDateTime startTime) -
Method Summary
Modifier and TypeMethodDescriptionaddChildrenItem(SummarizedSpan childrenItem) children(List<SummarizedSpan> children) durationSeconds(Double durationSeconds) endTime(OffsetDateTime endTime) booleanReturn true if this SummarizedSpan object is equal to o.error(APMSpanErrorFlag error) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The child spans of this node in the pruned tree.The duration of the span, in seconds.The end time of the span, in RFC3339 format.getError()Error flag for a span.The number of child spans that were pruned from this node when summarizing the trace.getMeta()String-valued tags attached to the span.Numeric metrics attached to the span.getName()The operation name of the span.The ID of the parent span, or0when the span is the trace root.The resource that the span describes.The name of the service that emitted the span.The span ID, as an unsigned 64-bit integer.The OpenTelemetry span kind, for exampleINTERNAL,SERVER,CLIENT,PRODUCER, orCONSUMER.The start time of the span, in RFC3339 format.inthashCode()hiddenChildSpansCount(Integer hiddenChildSpansCount) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.putMetaItem(String key, String metaItem) putMetricsItem(String key, Double metricsItem) voidsetChildren(List<SummarizedSpan> children) voidsetDurationSeconds(Double durationSeconds) voidsetEndTime(OffsetDateTime endTime) voidsetError(APMSpanErrorFlag error) voidsetHiddenChildSpansCount(Integer hiddenChildSpansCount) voidvoidsetMetrics(Map<String, Double> metrics) voidvoidsetParentId(Long parentId) voidsetResource(String resource) voidsetService(String service) voidvoidsetSpanKind(String spanKind) voidsetStartTime(OffsetDateTime startTime) startTime(OffsetDateTime startTime) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CHILDREN
- See Also:
-
JSON_PROPERTY_DURATION_SECONDS
- See Also:
-
JSON_PROPERTY_END_TIME
- See Also:
-
JSON_PROPERTY_ERROR
- See Also:
-
JSON_PROPERTY_HIDDEN_CHILD_SPANS_COUNT
- See Also:
-
JSON_PROPERTY_META
- See Also:
-
JSON_PROPERTY_METRICS
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_PARENT_ID
- See Also:
-
JSON_PROPERTY_RESOURCE
- See Also:
-
JSON_PROPERTY_SERVICE
- See Also:
-
JSON_PROPERTY_SPAN_ID
- See Also:
-
JSON_PROPERTY_SPAN_KIND
- See Also:
-
JSON_PROPERTY_START_TIME
- See Also:
-
-
Constructor Details
-
SummarizedSpan
public SummarizedSpan() -
SummarizedSpan
public SummarizedSpan(List<SummarizedSpan> children, Double durationSeconds, OffsetDateTime endTime, APMSpanErrorFlag error, Integer hiddenChildSpansCount, Map<String, String> meta, Map<String, Double> metrics, String name, Long parentId, String resource, String service, Long spanId, String spanKind, OffsetDateTime startTime)
-
-
Method Details
-
children
-
addChildrenItem
-
getChildren
The child spans of this node in the pruned tree.- Returns:
- children
-
setChildren
-
durationSeconds
-
getDurationSeconds
The duration of the span, in seconds.- Returns:
- durationSeconds
-
setDurationSeconds
-
endTime
-
getEndTime
The end time of the span, in RFC3339 format.- Returns:
- endTime
-
setEndTime
-
error
-
getError
Error flag for a span.1when the span is in error,0otherwise.- Returns:
- error
-
setError
-
getHiddenChildSpansCount
The number of child spans that were pruned from this node when summarizing the trace. maximum: 2147483647- Returns:
- hiddenChildSpansCount
-
setHiddenChildSpansCount
-
meta
-
putMetaItem
-
getMeta
String-valued tags attached to the span.- Returns:
- meta
-
setMeta
-
metrics
-
putMetricsItem
-
getMetrics
Numeric metrics attached to the span.- Returns:
- metrics
-
setMetrics
-
name
-
getName
The operation name of the span.- Returns:
- name
-
setName
-
parentId
-
getParentId
The ID of the parent span, or0when the span is the trace root.- Returns:
- parentId
-
setParentId
-
resource
-
getResource
The resource that the span describes.- Returns:
- resource
-
setResource
-
service
-
getService
The name of the service that emitted the span.- Returns:
- service
-
setService
-
spanId
-
getSpanId
The span ID, as an unsigned 64-bit integer.- Returns:
- spanId
-
setSpanId
-
spanKind
-
getSpanKind
The OpenTelemetry span kind, for exampleINTERNAL,SERVER,CLIENT,PRODUCER, orCONSUMER.- Returns:
- spanKind
-
setSpanKind
-
startTime
-
getStartTime
The start time of the span, in RFC3339 format.- Returns:
- startTime
-
setStartTime
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- SummarizedSpan
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this SummarizedSpan object is equal to o. -
hashCode
public int hashCode() -
toString
-