Interface MetricDefinition.Builder

  • Method Details

    • entityIdKey

      MetricDefinition.Builder entityIdKey(String entityIdKey)

      The entity, such as a user or session, that does an action that causes a metric value to be recorded.

      Parameters:
      entityIdKey - The entity, such as a user or session, that does an action that causes a metric value to be recorded.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventPattern

      MetricDefinition.Builder eventPattern(String eventPattern)

      The EventBridge event pattern that defines how the metric is recorded.

      For more information about EventBridge event patterns, see Amazon EventBridge event patterns.

      Parameters:
      eventPattern - The EventBridge event pattern that defines how the metric is recorded.

      For more information about EventBridge event patterns, see Amazon EventBridge event patterns.

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

      The name of the metric.

      Parameters:
      name - The name of the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unitLabel

      MetricDefinition.Builder unitLabel(String unitLabel)

      The label for the units that the metric is measuring.

      Parameters:
      unitLabel - The label for the units that the metric is measuring.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • valueKey

      MetricDefinition.Builder valueKey(String valueKey)

      The value that is tracked to produce the metric.

      Parameters:
      valueKey - The value that is tracked to produce the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.