Class TraceSummary
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<TraceSummary.Builder,
TraceSummary>
Metadata generated from the segment documents in a trace.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Map
<String, List<ValueWithServiceIds>> Annotations from the trace's segment documents.final List
<AvailabilityZoneDetail> A list of Availability Zones for any zone corresponding to the trace segments.static TraceSummary.Builder
builder()
final Double
duration()
The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.final ServiceId
The root of a trace.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final List
<ErrorRootCause> A collection of ErrorRootCause structures corresponding to the trace segments.final List
<FaultRootCause> A collection of FaultRootCause structures corresponding to the trace segments.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final boolean
For responses, this returns true if the service returned a value for the Annotations property.final boolean
For responses, this returns true if the service returned a value for the AvailabilityZones property.final Boolean
hasError()
The root segment document has a 400 series error.final boolean
For responses, this returns true if the service returned a value for the ErrorRootCauses property.final Boolean
hasFault()
The root segment document has a 500 series error.final boolean
For responses, this returns true if the service returned a value for the FaultRootCauses property.final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the InstanceIds property.final boolean
For responses, this returns true if the service returned a value for the ResourceARNs property.final boolean
For responses, this returns true if the service returned a value for the ResponseTimeRootCauses property.final boolean
For responses, this returns true if the service returned a value for the ServiceIds property.final Boolean
One or more of the segment documents has a 429 throttling error.final boolean
hasUsers()
For responses, this returns true if the service returned a value for the Users property.final Http
http()
Information about the HTTP request served by the trace.final String
id()
The unique identifier for the request that generated the trace's segments and subsegments.final List
<InstanceIdDetail> A list of EC2 instance IDs for any instance corresponding to the trace segments.final Boolean
One or more of the segment documents is in progress.final Instant
The matched time stamp of a defined event.final List
<ResourceARNDetail> A list of resource ARNs for any resource corresponding to the trace segments.final Double
The length of time in seconds between the start and end times of the root segment.final List
<ResponseTimeRootCause> A collection of ResponseTimeRootCause structures corresponding to the trace segments.final Integer
revision()
The revision number of a trace.static Class
<? extends TraceSummary.Builder> Service IDs from the trace's segment documents.final Instant
The start time of a trace, based on the earliest trace segment start time.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.users()
Users from the trace's segment documents.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
The unique identifier for the request that generated the trace's segments and subsegments.
- Returns:
- The unique identifier for the request that generated the trace's segments and subsegments.
-
startTime
The start time of a trace, based on the earliest trace segment start time.
- Returns:
- The start time of a trace, based on the earliest trace segment start time.
-
duration
The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.
- Returns:
- The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.
-
responseTime
The length of time in seconds between the start and end times of the root segment. If the service performs work asynchronously, the response time measures the time before the response is sent to the user, while the duration measures the amount of time before the last traced activity completes.
- Returns:
- The length of time in seconds between the start and end times of the root segment. If the service performs work asynchronously, the response time measures the time before the response is sent to the user, while the duration measures the amount of time before the last traced activity completes.
-
hasFault
The root segment document has a 500 series error.
- Returns:
- The root segment document has a 500 series error.
-
hasError
The root segment document has a 400 series error.
- Returns:
- The root segment document has a 400 series error.
-
hasThrottle
One or more of the segment documents has a 429 throttling error.
- Returns:
- One or more of the segment documents has a 429 throttling error.
-
isPartial
One or more of the segment documents is in progress.
- Returns:
- One or more of the segment documents is in progress.
-
http
Information about the HTTP request served by the trace.
- Returns:
- Information about the HTTP request served by the trace.
-
hasAnnotations
public final boolean hasAnnotations()For responses, this returns true if the service returned a value for the Annotations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
annotations
Annotations from the trace's segment documents.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAnnotations()
method.- Returns:
- Annotations from the trace's segment documents.
-
hasUsers
public final boolean hasUsers()For responses, this returns true if the service returned a value for the Users property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
users
Users from the trace's segment documents.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasUsers()
method.- Returns:
- Users from the trace's segment documents.
-
hasServiceIds
public final boolean hasServiceIds()For responses, this returns true if the service returned a value for the ServiceIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
serviceIds
Service IDs from the trace's segment documents.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasServiceIds()
method.- Returns:
- Service IDs from the trace's segment documents.
-
hasResourceARNs
public final boolean hasResourceARNs()For responses, this returns true if the service returned a value for the ResourceARNs property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
resourceARNs
A list of resource ARNs for any resource corresponding to the trace segments.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasResourceARNs()
method.- Returns:
- A list of resource ARNs for any resource corresponding to the trace segments.
-
hasInstanceIds
public final boolean hasInstanceIds()For responses, this returns true if the service returned a value for the InstanceIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
instanceIds
A list of EC2 instance IDs for any instance corresponding to the trace segments.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasInstanceIds()
method.- Returns:
- A list of EC2 instance IDs for any instance corresponding to the trace segments.
-
hasAvailabilityZones
public final boolean hasAvailabilityZones()For responses, this returns true if the service returned a value for the AvailabilityZones property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
availabilityZones
A list of Availability Zones for any zone corresponding to the trace segments.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAvailabilityZones()
method.- Returns:
- A list of Availability Zones for any zone corresponding to the trace segments.
-
entryPoint
The root of a trace.
- Returns:
- The root of a trace.
-
hasFaultRootCauses
public final boolean hasFaultRootCauses()For responses, this returns true if the service returned a value for the FaultRootCauses property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
faultRootCauses
A collection of FaultRootCause structures corresponding to the trace segments.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasFaultRootCauses()
method.- Returns:
- A collection of FaultRootCause structures corresponding to the trace segments.
-
hasErrorRootCauses
public final boolean hasErrorRootCauses()For responses, this returns true if the service returned a value for the ErrorRootCauses property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
errorRootCauses
A collection of ErrorRootCause structures corresponding to the trace segments.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasErrorRootCauses()
method.- Returns:
- A collection of ErrorRootCause structures corresponding to the trace segments.
-
hasResponseTimeRootCauses
public final boolean hasResponseTimeRootCauses()For responses, this returns true if the service returned a value for the ResponseTimeRootCauses property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
responseTimeRootCauses
A collection of ResponseTimeRootCause structures corresponding to the trace segments.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasResponseTimeRootCauses()
method.- Returns:
- A collection of ResponseTimeRootCause structures corresponding to the trace segments.
-
revision
The revision number of a trace.
- Returns:
- The revision number of a trace.
-
matchedEventTime
The matched time stamp of a defined event.
- Returns:
- The matched time stamp of a defined event.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<TraceSummary.Builder,
TraceSummary> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-