Interface MetricAttribute.Builder

  • Method Details

    • eventType

      MetricAttribute.Builder eventType(String eventType)

      The metric's event type.

      Parameters:
      eventType - The metric's event type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricName

      MetricAttribute.Builder metricName(String metricName)

      The metric's name. The name helps you identify the metric in Amazon CloudWatch or Amazon S3.

      Parameters:
      metricName - The metric's name. The name helps you identify the metric in Amazon CloudWatch or Amazon S3.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • expression

      MetricAttribute.Builder expression(String expression)

      The attribute's expression. Available functions are SUM() or SAMPLECOUNT(). For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).

      Parameters:
      expression - The attribute's expression. Available functions are SUM() or SAMPLECOUNT(). For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).
      Returns:
      Returns a reference to this object so that method calls can be chained together.