Interface Evidence.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Evidence.Builder,Evidence>, SdkBuilder<Evidence.Builder,Evidence>, SdkPojo
Enclosing class:
Evidence

@Mutable @NotThreadSafe public static interface Evidence.Builder extends SdkPojo, CopyableBuilder<Evidence.Builder,Evidence>
  • Method Details

    • startedAt

      Evidence.Builder startedAt(Instant startedAt)

      Start of the window these figures cover.

      Parameters:
      startedAt - Start of the window these figures cover.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endedAt

      Evidence.Builder endedAt(Instant endedAt)

      End of the window these figures cover.

      Parameters:
      endedAt - End of the window these figures cover.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • measurement

      Evidence.Builder measurement(EvidenceMeasurement measurement)

      What was measured in this window and how it compared to expectation.

      Parameters:
      measurement - What was measured in this window and how it compared to expectation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • measurement

      default Evidence.Builder measurement(Consumer<EvidenceMeasurement.Builder> measurement)

      What was measured in this window and how it compared to expectation.

      This is a convenience method that creates an instance of the EvidenceMeasurement.Builder avoiding the need to create one manually via EvidenceMeasurement.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to measurement(EvidenceMeasurement).

      Parameters:
      measurement - a consumer that will call methods on EvidenceMeasurement.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • detector

      Evidence.Builder detector(String detector)

      The rule that raised this occurrence. May differ between occurrences in the same episode.

      Parameters:
      detector - The rule that raised this occurrence. May differ between occurrences in the same episode.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • source

      Evidence.Builder source(String source)

      What the figures were computed from.

      Parameters:
      source - What the figures were computed from.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampledFraction

      Evidence.Builder sampledFraction(Double sampledFraction)

      The trace sampling rate: the share of the service's calls that its raw spans kept, measured over the last hour against a view that counts every call. When source is "raw", this is the lowest share measured against any of the service's views. When source names a view, it is the share measured against that view. Absent when the view it is measured against (for raw evidence, every view of the service) counted too few calls in the last hour. Present only on trace evidence.

      Parameters:
      sampledFraction - The trace sampling rate: the share of the service's calls that its raw spans kept, measured over the last hour against a view that counts every call. When source is "raw", this is the lowest share measured against any of the service's views. When source names a view, it is the share measured against that view. Absent when the view it is measured against (for raw evidence, every view of the service) counted too few calls in the last hour. Present only on trace evidence.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • topContributors

      Evidence.Builder topContributors(Collection<TopContributor> topContributors)

      What accounted for the anomalous excess, by dimension.

      Parameters:
      topContributors - What accounted for the anomalous excess, by dimension.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • topContributors

      Evidence.Builder topContributors(TopContributor... topContributors)

      What accounted for the anomalous excess, by dimension.

      Parameters:
      topContributors - What accounted for the anomalous excess, by dimension.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • topContributors

      Evidence.Builder topContributors(Consumer<TopContributor.Builder>... topContributors)

      What accounted for the anomalous excess, by dimension.

      This is a convenience method that creates an instance of the TopContributor.Builder avoiding the need to create one manually via TopContributor.builder() .

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to topContributors(List<TopContributor>).

      Parameters:
      topContributors - a consumer that will call methods on TopContributor.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • omittedContributors

      Evidence.Builder omittedContributors(Integer omittedContributors)

      Contributors with excess beyond those listed in topContributors.

      Parameters:
      omittedContributors - Contributors with excess beyond those listed in topContributors.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • telemetrySamples

      Evidence.Builder telemetrySamples(Collection<TelemetrySample> telemetrySamples)

      Telemetry recorded in this window. May be absent on older occurrences even when the signal type produces samples, because the total retained per anomaly is bounded and the most recent occurrences are kept.

      Parameters:
      telemetrySamples - Telemetry recorded in this window. May be absent on older occurrences even when the signal type produces samples, because the total retained per anomaly is bounded and the most recent occurrences are kept.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • telemetrySamples

      Evidence.Builder telemetrySamples(TelemetrySample... telemetrySamples)

      Telemetry recorded in this window. May be absent on older occurrences even when the signal type produces samples, because the total retained per anomaly is bounded and the most recent occurrences are kept.

      Parameters:
      telemetrySamples - Telemetry recorded in this window. May be absent on older occurrences even when the signal type produces samples, because the total retained per anomaly is bounded and the most recent occurrences are kept.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • telemetrySamples

      Evidence.Builder telemetrySamples(Consumer<TelemetrySample.Builder>... telemetrySamples)

      Telemetry recorded in this window. May be absent on older occurrences even when the signal type produces samples, because the total retained per anomaly is bounded and the most recent occurrences are kept.

      This is a convenience method that creates an instance of the TelemetrySample.Builder avoiding the need to create one manually via TelemetrySample.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to telemetrySamples(List<TelemetrySample>).

      Parameters:
      telemetrySamples - a consumer that will call methods on TelemetrySample.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • signalDetails

      Evidence.Builder signalDetails(EvidenceDetails signalDetails)

      Fields specific to the signal type.

      Parameters:
      signalDetails - Fields specific to the signal type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • signalDetails

      default Evidence.Builder signalDetails(Consumer<EvidenceDetails.Builder> signalDetails)

      Fields specific to the signal type.

      This is a convenience method that creates an instance of the EvidenceDetails.Builder avoiding the need to create one manually via EvidenceDetails.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to signalDetails(EvidenceDetails).

      Parameters:
      signalDetails - a consumer that will call methods on EvidenceDetails.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: