Enum Statistic
(deprecated) Statistic to use over the aggregation period.
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
[Obsolete("Use one of the factory methods on `Stats` to produce statistics strings")]
public enum Statistic
Syntax (vb)
<Obsolete("Use one of the factory methods on `Stats` to produce statistics strings")>
Public Enum Statistic
Remarks
Stability: Deprecated
ExampleMetadata: infused
Examples
MatchmakingRuleSet matchmakingRuleSet;
// Alarm that triggers when the per-second average of not placed matches exceed 10%
var ruleEvaluationRatio = new MathExpression(new MathExpressionProps {
Expression = "1 - (ruleEvaluationsPassed / ruleEvaluationsFailed)",
UsingMetrics = new Dictionary<string, IMetric> {
{ "ruleEvaluationsPassed", matchmakingRuleSet.MetricRuleEvaluationsPassed(new MetricOptions { Statistic = Statistic.SUM }) },
{ "ruleEvaluationsFailed", matchmakingRuleSet.Metric("ruleEvaluationsFailed") }
}
});
new Alarm(this, "Alarm", new AlarmProps {
Metric = ruleEvaluationRatio,
Threshold = 0.1,
EvaluationPeriods = 3
});
Synopsis
Fields
AVERAGE | (deprecated) The value of Sum / SampleCount during the specified period. |
MAXIMUM | (deprecated) The highest value observed during the specified period. |
MINIMUM | (deprecated) The lowest value observed during the specified period. |
SAMPLE_COUNT | (deprecated) The count (number) of data points used for the statistical calculation. |
SUM | (deprecated) All values submitted for the matching metric added together. |
Fields
Name | Description |
---|---|
AVERAGE | (deprecated) The value of Sum / SampleCount during the specified period. |
MAXIMUM | (deprecated) The highest value observed during the specified period. |
MINIMUM | (deprecated) The lowest value observed during the specified period. |
SAMPLE_COUNT | (deprecated) The count (number) of data points used for the statistical calculation. |
SUM | (deprecated) All values submitted for the matching metric added together. |