Class TraceSpanSummary
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.apmtraces.model.TraceSpanSummary
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20200630") public final class TraceSpanSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelSummary of the information pertaining to the spans in the trace window that is being queried.
 Note: Objects should always be created or deserialized using theTraceSpanSummary.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theTraceSpanSummary.Builder, which maintain a set of all explicitly set fields calledTraceSpanSummary.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classTraceSpanSummary.Builder
 - 
Constructor SummaryConstructors Constructor Description TraceSpanSummary(String key, String rootSpanOperationName, Date timeEarliestSpanStarted, Date timeLatestSpanEnded, Integer spanCount, Integer errorSpanCount, String rootSpanServiceName, Date timeRootSpanStarted, Date timeRootSpanEnded, Integer rootSpanDurationInMs, Integer traceDurationInMs, Boolean isFault, String traceStatus, String traceErrorType, String traceErrorCode, List<TraceServiceSummary> serviceSummaries)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TraceSpanSummary.Builderbuilder()Create a new builder.booleanequals(Object o)IntegergetErrorSpanCount()The number of spans with errors that have been processed by the system for the trace.BooleangetIsFault()Boolean flag that indicates whether the trace has an error.StringgetKey()Unique identifier (traceId) for the trace that represents the span set.IntegergetRootSpanDurationInMs()Time taken for the root span operation to complete in milliseconds.StringgetRootSpanOperationName()Root span name associated with the trace.StringgetRootSpanServiceName()Service associated with the trace.List<TraceServiceSummary>getServiceSummaries()A summary of the spans by service.IntegergetSpanCount()The number of spans that have been processed by the system for the trace.DategetTimeEarliestSpanStarted()Start time of the earliest span in the span collection.DategetTimeLatestSpanEnded()End time of the span that most recently ended in the span collection.DategetTimeRootSpanEnded()End time of the root span for the span collection.DategetTimeRootSpanStarted()Start time of the root span for the span collection.IntegergetTraceDurationInMs()Time between the start of the earliest span and the end of the most recent span in milliseconds.StringgetTraceErrorCode()Error code of the trace.StringgetTraceErrorType()Error type of the trace.StringgetTraceStatus()The status of the trace.inthashCode()TraceSpanSummary.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
TraceSpanSummary@Deprecated @ConstructorProperties({"key","rootSpanOperationName","timeEarliestSpanStarted","timeLatestSpanEnded","spanCount","errorSpanCount","rootSpanServiceName","timeRootSpanStarted","timeRootSpanEnded","rootSpanDurationInMs","traceDurationInMs","isFault","traceStatus","traceErrorType","traceErrorCode","serviceSummaries"}) public TraceSpanSummary(String key, String rootSpanOperationName, Date timeEarliestSpanStarted, Date timeLatestSpanEnded, Integer spanCount, Integer errorSpanCount, String rootSpanServiceName, Date timeRootSpanStarted, Date timeRootSpanEnded, Integer rootSpanDurationInMs, Integer traceDurationInMs, Boolean isFault, String traceStatus, String traceErrorType, String traceErrorCode, List<TraceServiceSummary> serviceSummaries) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static TraceSpanSummary.Builder builder() Create a new builder.
 - 
toBuilderpublic TraceSpanSummary.Builder toBuilder() 
 - 
getKeypublic String getKey() Unique identifier (traceId) for the trace that represents the span set.Note that this field is defined as traceKey in the API and it maps to the traceId in the trace data in Application Performance Monitoring. - Returns:
- the value
 
 - 
getRootSpanOperationNamepublic String getRootSpanOperationName() Root span name associated with the trace.This is the flow start operation name. Null is displayed if the root span is not yet completed. - Returns:
- the value
 
 - 
getTimeEarliestSpanStartedpublic Date getTimeEarliestSpanStarted() Start time of the earliest span in the span collection.- Returns:
- the value
 
 - 
getTimeLatestSpanEndedpublic Date getTimeLatestSpanEnded() End time of the span that most recently ended in the span collection.- Returns:
- the value
 
 - 
getSpanCountpublic Integer getSpanCount() The number of spans that have been processed by the system for the trace.Note that there could be additional spans that have not been processed or reported yet if the trace is still in progress. - Returns:
- the value
 
 - 
getErrorSpanCountpublic Integer getErrorSpanCount() The number of spans with errors that have been processed by the system for the trace.Note that the number of spans with errors will be less than or equal to the total number of spans in the trace. - Returns:
- the value
 
 - 
getRootSpanServiceNamepublic String getRootSpanServiceName() Service associated with the trace.- Returns:
- the value
 
 - 
getTimeRootSpanStartedpublic Date getTimeRootSpanStarted() Start time of the root span for the span collection.- Returns:
- the value
 
 - 
getTimeRootSpanEndedpublic Date getTimeRootSpanEnded() End time of the root span for the span collection.- Returns:
- the value
 
 - 
getRootSpanDurationInMspublic Integer getRootSpanDurationInMs() Time taken for the root span operation to complete in milliseconds.- Returns:
- the value
 
 - 
getTraceDurationInMspublic Integer getTraceDurationInMs() Time between the start of the earliest span and the end of the most recent span in milliseconds.- Returns:
- the value
 
 - 
getIsFaultpublic Boolean getIsFault() Boolean flag that indicates whether the trace has an error.- Returns:
- the value
 
 - 
getTraceStatuspublic String getTraceStatus() The status of the trace.The trace statuses are defined as follows: complete - a root span has been recorded, but there is no information on the errors. success - a complete root span is recorded there is a successful error type and error code - HTTP 200. incomplete - the root span has not yet been received. error - the root span returned with an error. There may or may not be an associated error code or error type. - Returns:
- the value
 
 - 
getTraceErrorTypepublic String getTraceErrorType() Error type of the trace.- Returns:
- the value
 
 - 
getTraceErrorCodepublic String getTraceErrorCode() Error code of the trace.- Returns:
- the value
 
 - 
getServiceSummariespublic List<TraceServiceSummary> getServiceSummaries() A summary of the spans by service.- Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-