java.lang.Object
java.lang.Enum<Statistic>
software.amazon.awscdk.services.cloudwatch.Statistic
All Implemented Interfaces:
Serializable, Comparable<Statistic>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:13.965Z") @Stability(Deprecated) @Deprecated public enum Statistic extends Enum<Statistic>
Deprecated.
Use one of the factory methods on Stats to produce statistics strings
(deprecated) Statistic to use over the aggregation period.

Example:

 MatchmakingRuleSet matchmakingRuleSet;
 // Alarm that triggers when the per-second average of not placed matches exceed 10%
 MathExpression ruleEvaluationRatio = MathExpression.Builder.create()
         .expression("1 - (ruleEvaluationsPassed / ruleEvaluationsFailed)")
         .usingMetrics(Map.of(
                 "ruleEvaluationsPassed", matchmakingRuleSet.metricRuleEvaluationsPassed(MetricOptions.builder().statistic(Statistic.SUM).build()),
                 "ruleEvaluationsFailed", matchmakingRuleSet.metric("ruleEvaluationsFailed")))
         .build();
 Alarm.Builder.create(this, "Alarm")
         .metric(ruleEvaluationRatio)
         .threshold(0.1)
         .evaluationPeriods(3)
         .build();
 

See Also:
  • Enum Constant Details

    • SAMPLE_COUNT

      @Stability(Deprecated) @Deprecated public static final Statistic SAMPLE_COUNT
      Deprecated.
      (deprecated) The count (number) of data points used for the statistical calculation.
    • AVERAGE

      @Stability(Deprecated) @Deprecated public static final Statistic AVERAGE
      Deprecated.
      (deprecated) The value of Sum / SampleCount during the specified period.
    • SUM

      @Stability(Deprecated) @Deprecated public static final Statistic SUM
      Deprecated.
      (deprecated) All values submitted for the matching metric added together.

      This statistic can be useful for determining the total volume of a metric.

    • MINIMUM

      @Stability(Deprecated) @Deprecated public static final Statistic MINIMUM
      Deprecated.
      (deprecated) The lowest value observed during the specified period.

      You can use this value to determine low volumes of activity for your application.

    • MAXIMUM

      @Stability(Deprecated) @Deprecated public static final Statistic MAXIMUM
      Deprecated.
      (deprecated) The highest value observed during the specified period.

      You can use this value to determine high volumes of activity for your application.

  • Method Details

    • values

      public static Statistic[] values()
      Deprecated.
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Statistic valueOf(String name)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null