Interface MetricDefinitionConfig.Builder

    • Method Detail

      • entityIdKey

        MetricDefinitionConfig.Builder entityIdKey​(String entityIdKey)

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

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

        MetricDefinitionConfig.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

        MetricDefinitionConfig.Builder name​(String name)

        A name for the metric.

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

        MetricDefinitionConfig.Builder unitLabel​(String unitLabel)

        A label for the units that the metric is measuring.

        Parameters:
        unitLabel - A 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

        MetricDefinitionConfig.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.