Interface LiveTailSessionUpdate.Builder

    • Method Detail

      • sessionMetadata

        LiveTailSessionUpdate.Builder sessionMetadata​(LiveTailSessionMetadata sessionMetadata)

        This object contains the session metadata for a Live Tail session.

        Parameters:
        sessionMetadata - This object contains the session metadata for a Live Tail session.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sessionResults

        LiveTailSessionUpdate.Builder sessionResults​(Collection<LiveTailSessionLogEvent> sessionResults)

        An array, where each member of the array includes the information for one log event in the Live Tail session.

        A sessionResults array can include as many as 500 log events. If the number of log events matching the request exceeds 500 per second, the log events are sampled down to 500 log events to be included in each sessionUpdate structure.

        Parameters:
        sessionResults - An array, where each member of the array includes the information for one log event in the Live Tail session.

        A sessionResults array can include as many as 500 log events. If the number of log events matching the request exceeds 500 per second, the log events are sampled down to 500 log events to be included in each sessionUpdate structure.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sessionResults

        LiveTailSessionUpdate.Builder sessionResults​(LiveTailSessionLogEvent... sessionResults)

        An array, where each member of the array includes the information for one log event in the Live Tail session.

        A sessionResults array can include as many as 500 log events. If the number of log events matching the request exceeds 500 per second, the log events are sampled down to 500 log events to be included in each sessionUpdate structure.

        Parameters:
        sessionResults - An array, where each member of the array includes the information for one log event in the Live Tail session.

        A sessionResults array can include as many as 500 log events. If the number of log events matching the request exceeds 500 per second, the log events are sampled down to 500 log events to be included in each sessionUpdate structure.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sessionResults

        LiveTailSessionUpdate.Builder sessionResults​(Consumer<LiveTailSessionLogEvent.Builder>... sessionResults)

        An array, where each member of the array includes the information for one log event in the Live Tail session.

        A sessionResults array can include as many as 500 log events. If the number of log events matching the request exceeds 500 per second, the log events are sampled down to 500 log events to be included in each sessionUpdate structure.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #sessionResults(List).

        Parameters:
        sessionResults - a consumer that will call methods on LiveTailSessionLogEvent.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #sessionResults(java.util.Collection)