Interface RunTraceStats.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RunTraceStats.Builder,,RunTraceStats> SdkBuilder<RunTraceStats.Builder,,RunTraceStats> SdkPojo
- Enclosing class:
RunTraceStats
-
Method Summary
Modifier and TypeMethodDescriptionattributes(Collection<TraceAttributeStats> attributes) The values each span attribute took across the cases with spans, up to 20 attributes.attributes(Consumer<TraceAttributeStats.Builder>... attributes) The values each span attribute took across the cases with spans, up to 20 attributes.attributes(TraceAttributeStats... attributes) The values each span attribute took across the cases with spans, up to 20 attributes.The number of cases with a traced turn that were read.casesWithSpans(Integer casesWithSpans) The number of cases read that had at least one of the agent's spans.computedAt(Instant computedAt) The time when the stats were computed.metrics(Collection<TraceMetricStats> metrics) Per-case metrics, with their statistics across the cases with spans, up to 20 metrics.metrics(Consumer<TraceMetricStats.Builder>... metrics) Per-case metrics, with their statistics across the cases with spans, up to 20 metrics.metrics(TraceMetricStats... metrics) Per-case metrics, with their statistics across the cases with spans, up to 20 metrics.Whether the run had more cases with a traced turn than casesRead.The status of the stats.status(TraceStatsStatus status) The status of the stats.statusReason(String statusReason) Why the stats are UNAVAILABLE.statusReason(TraceStatsStatusReason statusReason) Why the stats are UNAVAILABLE.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
status
The status of the stats. PENDING from the end of the run until they are computed, usually a minute or two and up to about 15 minutes while the run's spans are still arriving.
- Parameters:
status- The status of the stats. PENDING from the end of the run until they are computed, usually a minute or two and up to about 15 minutes while the run's spans are still arriving.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the stats. PENDING from the end of the run until they are computed, usually a minute or two and up to about 15 minutes while the run's spans are still arriving.
- Parameters:
status- The status of the stats. PENDING from the end of the run until they are computed, usually a minute or two and up to about 15 minutes while the run's spans are still arriving.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statusReason
Why the stats are UNAVAILABLE. Absent otherwise.
- Parameters:
statusReason- Why the stats are UNAVAILABLE. Absent otherwise.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statusReason
Why the stats are UNAVAILABLE. Absent otherwise.
- Parameters:
statusReason- Why the stats are UNAVAILABLE. Absent otherwise.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
casesRead
The number of cases with a traced turn that were read. All such cases, up to 1,000; beyond that, the 1,000 whose caseId has the smallest SHA-256 hash, or fewer when their turns exceed 10,000 traces.
- Parameters:
casesRead- The number of cases with a traced turn that were read. All such cases, up to 1,000; beyond that, the 1,000 whose caseId has the smallest SHA-256 hash, or fewer when their turns exceed 10,000 traces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sampled
Whether the run had more cases with a traced turn than casesRead.
- Parameters:
sampled- Whether the run had more cases with a traced turn than casesRead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
casesWithSpans
The number of cases read that had at least one of the agent's spans. Every value in attributes and metrics is computed over these cases.
- Parameters:
casesWithSpans- The number of cases read that had at least one of the agent's spans. Every value in attributes and metrics is computed over these cases.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
The values each span attribute took across the cases with spans, up to 20 attributes.
- Parameters:
attributes- The values each span attribute took across the cases with spans, up to 20 attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
The values each span attribute took across the cases with spans, up to 20 attributes.
- Parameters:
attributes- The values each span attribute took across the cases with spans, up to 20 attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
The values each span attribute took across the cases with spans, up to 20 attributes.
This is a convenience method that creates an instance of theTraceAttributeStats.Builderavoiding the need to create one manually viaTraceAttributeStats.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toattributes(List<TraceAttributeStats>).- Parameters:
attributes- a consumer that will call methods onTraceAttributeStats.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metrics
Per-case metrics, with their statistics across the cases with spans, up to 20 metrics.
- Parameters:
metrics- Per-case metrics, with their statistics across the cases with spans, up to 20 metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
Per-case metrics, with their statistics across the cases with spans, up to 20 metrics.
- Parameters:
metrics- Per-case metrics, with their statistics across the cases with spans, up to 20 metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
Per-case metrics, with their statistics across the cases with spans, up to 20 metrics.
This is a convenience method that creates an instance of theTraceMetricStats.Builderavoiding the need to create one manually viaTraceMetricStats.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometrics(List<TraceMetricStats>).- Parameters:
metrics- a consumer that will call methods onTraceMetricStats.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
computedAt
The time when the stats were computed.
- Parameters:
computedAt- The time when the stats were computed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-