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 10 log groups.

      Parameters:
      logGroupNames - The list of CloudWatch log group names to read agent traces from. Maximum of 10 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 10 log groups.

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

      CloudWatchLogsSource.Builder logGroupNamePrefixes(Collection<String> logGroupNamePrefixes)

      The list of CloudWatch log group name prefixes to read agent traces from. Specify this instead of logGroupNames to match log groups by prefix. Maximum of 5 prefixes. Specify either logGroupNames or logGroupNamePrefixes, not both. One of the two is required.

      Parameters:
      logGroupNamePrefixes - The list of CloudWatch log group name prefixes to read agent traces from. Specify this instead of logGroupNames to match log groups by prefix. Maximum of 5 prefixes. Specify either logGroupNames or logGroupNamePrefixes, not both. One of the two is required.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logGroupNamePrefixes

      CloudWatchLogsSource.Builder logGroupNamePrefixes(String... logGroupNamePrefixes)

      The list of CloudWatch log group name prefixes to read agent traces from. Specify this instead of logGroupNames to match log groups by prefix. Maximum of 5 prefixes. Specify either logGroupNames or logGroupNamePrefixes, not both. One of the two is required.

      Parameters:
      logGroupNamePrefixes - The list of CloudWatch log group name prefixes to read agent traces from. Specify this instead of logGroupNames to match log groups by prefix. Maximum of 5 prefixes. Specify either logGroupNames or logGroupNamePrefixes, not both. One of the two is required.
      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: