Class MetricDefinition

    • Method Detail

      • entityIdKey

        public final String entityIdKey()

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

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

        public final 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.

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

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

      • name

        public final String name()

        The name of the metric.

        Returns:
        The name of the metric.
      • unitLabel

        public final String unitLabel()

        The label for the units that the metric is measuring.

        Returns:
        The label for the units that the metric is measuring.
      • valueKey

        public final String valueKey()

        The value that is tracked to produce the metric.

        Returns:
        The value that is tracked to produce the metric.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)