Interface InsightRootCause.Builder

  • Method Details

    • name

      A generated label for the root cause.

      Parameters:
      name - A generated label for the root cause.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • explanation

      InsightRootCause.Builder explanation(String explanation)

      An explanation of how the root cause leads to the failures in the insight.

      Parameters:
      explanation - An explanation of how the root cause leads to the failures in the insight.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • affectedSessionCount

      InsightRootCause.Builder affectedSessionCount(Integer affectedSessionCount)

      The number of distinct sessions affected by the root cause. A session can be affected by more than one root cause of the same insight.

      Parameters:
      affectedSessionCount - The number of distinct sessions affected by the root cause. A session can be affected by more than one root cause of the same insight.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • suggestedFix

      InsightRootCause.Builder suggestedFix(String suggestedFix)

      A suggested change to the agent that addresses the root cause.

      Parameters:
      suggestedFix - A suggested change to the agent that addresses the root cause.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampleSessions

      InsightRootCause.Builder sampleSessions(Collection<SampleSession> sampleSessions)

      A sample of up to 10 sessions affected by the root cause.

      Parameters:
      sampleSessions - A sample of up to 10 sessions affected by the root cause.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampleSessions

      InsightRootCause.Builder sampleSessions(SampleSession... sampleSessions)

      A sample of up to 10 sessions affected by the root cause.

      Parameters:
      sampleSessions - A sample of up to 10 sessions affected by the root cause.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampleSessions

      InsightRootCause.Builder sampleSessions(Consumer<SampleSession.Builder>... sampleSessions)

      A sample of up to 10 sessions affected by the root cause.

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

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

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