Interface PutMetricFilterRequest.Builder

    • Method Detail

      • logGroupName

        PutMetricFilterRequest.Builder logGroupName​(String logGroupName)

        The name of the log group.

        Parameters:
        logGroupName - The name of the log group.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filterName

        PutMetricFilterRequest.Builder filterName​(String filterName)

        A name for the metric filter.

        Parameters:
        filterName - A name for the metric filter.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filterPattern

        PutMetricFilterRequest.Builder filterPattern​(String filterPattern)

        A filter pattern for extracting metric data out of ingested log events.

        Parameters:
        filterPattern - A filter pattern for extracting metric data out of ingested log events.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricTransformations

        PutMetricFilterRequest.Builder metricTransformations​(Collection<MetricTransformation> metricTransformations)

        A collection of information that defines how metric data gets emitted.

        Parameters:
        metricTransformations - A collection of information that defines how metric data gets emitted.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metricTransformations

        PutMetricFilterRequest.Builder metricTransformations​(MetricTransformation... metricTransformations)

        A collection of information that defines how metric data gets emitted.

        Parameters:
        metricTransformations - A collection of information that defines how metric data gets emitted.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • applyOnTransformedLogs

        PutMetricFilterRequest.Builder applyOnTransformedLogs​(Boolean applyOnTransformedLogs)

        This parameter is valid only for log groups that have an active log transformer. For more information about log transformers, see PutTransformer.

        If the log group uses either a log-group level or account-level transformer, and you specify true, the metric filter will be applied on the transformed version of the log events instead of the original ingested log events.

        Parameters:
        applyOnTransformedLogs - This parameter is valid only for log groups that have an active log transformer. For more information about log transformers, see PutTransformer.

        If the log group uses either a log-group level or account-level transformer, and you specify true, the metric filter will be applied on the transformed version of the log events instead of the original ingested log events.

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