Statistic Enum
Statistic to use over the aggregation period.
Example
ts
declare const matchmakingRuleSet: gamelift.MatchmakingRuleSet;
// Alarm that triggers when the per-second average of not placed matches exceed 10%
const ruleEvaluationRatio = new cloudwatch.MathExpression({
expression: '1 - (ruleEvaluationsPassed / ruleEvaluationsFailed)',
usingMetrics: {
ruleEvaluationsPassed: matchmakingRuleSet.metricRuleEvaluationsPassed({ statistic: cloudwatch.Statistic.SUM }),
ruleEvaluationsFailed: matchmakingRuleSet.metric('ruleEvaluationsFailed'),
},
});
new cloudwatch.Alarm(this, 'Alarm', {
metric: ruleEvaluationRatio,
threshold: 0.1,
evaluationPeriods: 3,
});
Members
| Member | Description |
|---|---|
SAMPLE_COUNT | The count (number) of data points used for the statistical calculation. |
AVERAGE | The value of Sum / SampleCount during the specified period. |
SUM | All values submitted for the matching metric added together. |
MINIMUM | The lowest value observed during the specified period. |
MAXIMUM | The highest value observed during the specified period. |