Enum Statistic
- All Implemented Interfaces:
Serializable
,Comparable<Statistic>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:05.786Z")
@Stability(Deprecated)
@Deprecated
public enum Statistic
extends Enum<Statistic>
Deprecated.
(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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated.Deprecated.Deprecated.Deprecated.Deprecated. -
Method Summary
-
Enum Constant Details
-
SAMPLE_COUNT
Deprecated.(deprecated) The count (number) of data points used for the statistical calculation. -
AVERAGE
Deprecated.(deprecated) The value of Sum / SampleCount during the specified period. -
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
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
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
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
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 nameNullPointerException
- if the argument is null
-
Stats
to produce statistics strings