Statistic
- class aws_cdk.aws_cloudwatch.Statistic(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
(deprecated) Statistic to use over the aggregation period.
- Deprecated:
Use one of the factory methods on
Stats
to produce statistics strings- See:
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html
- Stability:
deprecated
- ExampleMetadata:
infused
Example:
# matchmaking_rule_set: gamelift.MatchmakingRuleSet # Alarm that triggers when the per-second average of not placed matches exceed 10% rule_evaluation_ratio = cloudwatch.MathExpression( expression="1 - (ruleEvaluationsPassed / ruleEvaluationsFailed)", using_metrics={ "rule_evaluations_passed": matchmaking_rule_set.metric_rule_evaluations_passed(statistic=cloudwatch.Statistic.SUM), "rule_evaluations_failed": matchmaking_rule_set.metric("ruleEvaluationsFailed") } ) cloudwatch.Alarm(self, "Alarm", metric=rule_evaluation_ratio, threshold=0.1, evaluation_periods=3 )
Attributes
- AVERAGE
(deprecated) The value of Sum / SampleCount during the specified period.
- Stability:
deprecated
- MAXIMUM
(deprecated) The highest value observed during the specified period.
You can use this value to determine high volumes of activity for your application.
- Stability:
deprecated
- MINIMUM
(deprecated) The lowest value observed during the specified period.
You can use this value to determine low volumes of activity for your application.
- Stability:
deprecated
- SAMPLE_COUNT
(deprecated) The count (number) of data points used for the statistical calculation.
- Stability:
deprecated
- SUM
(deprecated) All values submitted for the matching metric added together.
This statistic can be useful for determining the total volume of a metric.
- Stability:
deprecated