Package com.datadog.api.client.v2.model
Class SpansAttributes
java.lang.Object
com.datadog.api.client.v2.model.SpansAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SpansAttributes
extends Object
JSON object containing all span attributes and their associated values.
-
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 Stringstatic final Stringstatic final Stringstatic final Stringboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTagsItem(String tagsItem) attributes(Map<String, Object> attributes) endTimestamp(OffsetDateTime endTimestamp) booleanReturn true if this SpansAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.JSON object of attributes from your span.JSON object of custom spans data.End timestamp of your span.getEnv()Name of the environment from where the spans are being sent.getHost()Name of the machine from where the spans are being sent.The reason why the span was ingested.Id of the span that's parent of this span.Unique identifier of the resource.The name of the resource.The reason why the span was indexed.The name of the application or service generating the span events.Whether or not the span was collected as a stand-alone span.Id of the span.Start timestamp of your span.getTags()Array of tags associated with your span.Id of the trace to which the span belongs.getType()The type of the span.inthashCode()ingestionReason(String ingestionReason) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.putAttributesItem(String key, Object attributesItem) putCustomItem(String key, Object customItem) resourceHash(String resourceHash) resourceName(String resourceName) retainedBy(String retainedBy) voidsetAttributes(Map<String, Object> attributes) voidvoidsetEndTimestamp(OffsetDateTime endTimestamp) voidvoidvoidsetIngestionReason(String ingestionReason) voidsetParentId(String parentId) voidsetResourceHash(String resourceHash) voidsetResourceName(String resourceName) voidsetRetainedBy(String retainedBy) voidsetService(String service) voidsetSingleSpan(Boolean singleSpan) voidvoidsetStartTimestamp(OffsetDateTime startTimestamp) voidvoidsetTraceId(String traceId) voidsingleSpan(Boolean singleSpan) startTimestamp(OffsetDateTime startTimestamp) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ATTRIBUTES
- See Also:
-
JSON_PROPERTY_CUSTOM
- See Also:
-
JSON_PROPERTY_END_TIMESTAMP
- See Also:
-
JSON_PROPERTY_ENV
- See Also:
-
JSON_PROPERTY_HOST
- See Also:
-
JSON_PROPERTY_INGESTION_REASON
- See Also:
-
JSON_PROPERTY_PARENT_ID
- See Also:
-
JSON_PROPERTY_RESOURCE_HASH
- See Also:
-
JSON_PROPERTY_RESOURCE_NAME
- See Also:
-
JSON_PROPERTY_RETAINED_BY
- See Also:
-
JSON_PROPERTY_SERVICE
- See Also:
-
JSON_PROPERTY_SINGLE_SPAN
- See Also:
-
JSON_PROPERTY_SPAN_ID
- See Also:
-
JSON_PROPERTY_START_TIMESTAMP
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_TRACE_ID
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
SpansAttributes
public SpansAttributes()
-
-
Method Details
-
attributes
-
putAttributesItem
-
getAttributes
JSON object of attributes from your span.- Returns:
- attributes
-
setAttributes
-
custom
-
putCustomItem
-
getCustom
JSON object of custom spans data.- Returns:
- custom
-
setCustom
-
endTimestamp
-
getEndTimestamp
End timestamp of your span.- Returns:
- endTimestamp
-
setEndTimestamp
-
env
-
getEnv
Name of the environment from where the spans are being sent.- Returns:
- env
-
setEnv
-
host
-
getHost
Name of the machine from where the spans are being sent.- Returns:
- host
-
setHost
-
ingestionReason
-
getIngestionReason
The reason why the span was ingested.- Returns:
- ingestionReason
-
setIngestionReason
-
parentId
-
getParentId
Id of the span that's parent of this span.- Returns:
- parentId
-
setParentId
-
resourceHash
-
getResourceHash
Unique identifier of the resource.- Returns:
- resourceHash
-
setResourceHash
-
resourceName
-
getResourceName
The name of the resource.- Returns:
- resourceName
-
setResourceName
-
retainedBy
-
getRetainedBy
The reason why the span was indexed.- Returns:
- retainedBy
-
setRetainedBy
-
service
-
getService
The name of the application or service generating the span events. It is used to switch from APM to Logs, so make sure you define the same value when you use both products.- Returns:
- service
-
setService
-
singleSpan
-
getSingleSpan
Whether or not the span was collected as a stand-alone span. Always associated to "single_span" ingestion_reason if true.- Returns:
- singleSpan
-
setSingleSpan
-
spanId
-
getSpanId
Id of the span.- Returns:
- spanId
-
setSpanId
-
startTimestamp
-
getStartTimestamp
Start timestamp of your span.- Returns:
- startTimestamp
-
setStartTimestamp
-
tags
-
addTagsItem
-
getTags
Array of tags associated with your span.- Returns:
- tags
-
setTags
-
traceId
-
getTraceId
Id of the trace to which the span belongs.- Returns:
- traceId
-
setTraceId
-
type
-
getType
The type of the span.- Returns:
- type
-
setType
-
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:
- SpansAttributes
-
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 SpansAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-