Interface SampleSession.Builder

  • Method Details

    • sessionId

      SampleSession.Builder sessionId(String sessionId)

      The unique identifier of the session.

      Parameters:
      sessionId - The unique identifier of the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastSeenAt

      SampleSession.Builder lastSeenAt(Instant lastSeenAt)

      The latest timestamp observed for the session in the batch evaluation input.

      Parameters:
      lastSeenAt - The latest timestamp observed for the session in the batch evaluation input.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findings

      The failures found in the session that belong to the insight or root cause, up to 10.

      Parameters:
      findings - The failures found in the session that belong to the insight or root cause, up to 10.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findings

      SampleSession.Builder findings(SessionFinding... findings)

      The failures found in the session that belong to the insight or root cause, up to 10.

      Parameters:
      findings - The failures found in the session that belong to the insight or root cause, up to 10.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findings

      The failures found in the session that belong to the insight or root cause, up to 10.

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

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

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