Interface CloudWatchLogsSource.Builder

  • Method Details

    • serviceNames

      CloudWatchLogsSource.Builder serviceNames(Collection<String> serviceNames)

      The list of agent service names to filter traces within the specified log groups.

      Parameters:
      serviceNames - The list of agent service names to filter traces within the specified log groups.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serviceNames

      CloudWatchLogsSource.Builder serviceNames(String... serviceNames)

      The list of agent service names to filter traces within the specified log groups.

      Parameters:
      serviceNames - The list of agent service names to filter traces within the specified log groups.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logGroupNames

      CloudWatchLogsSource.Builder logGroupNames(Collection<String> logGroupNames)

      The list of CloudWatch log group names to read agent traces from. Maximum of 5 log groups.

      Parameters:
      logGroupNames - The list of CloudWatch log group names to read agent traces from. Maximum of 5 log groups.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logGroupNames

      CloudWatchLogsSource.Builder logGroupNames(String... logGroupNames)

      The list of CloudWatch log group names to read agent traces from. Maximum of 5 log groups.

      Parameters:
      logGroupNames - The list of CloudWatch log group names to read agent traces from. Maximum of 5 log groups.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filterConfig

      Optional filter configuration to narrow down which sessions to evaluate.

      Parameters:
      filterConfig - Optional filter configuration to narrow down which sessions to evaluate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filterConfig

      Optional filter configuration to narrow down which sessions to evaluate.

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

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

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