Class Statistic
(deprecated) Statistic to use over the aggregation period.
Inheritance
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class Statistic : Enum
Syntax (vb)
Public NotInheritable Class Statistic
Inherits
Enum
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. |
value__ |
Fields
AVERAGE
(deprecated) The value of Sum / SampleCount during the specified period.
public const Statistic AVERAGE
Field Value
Type | Description |
---|---|
Statistic |
Remarks
Stability: Deprecated
MAXIMUM
(deprecated) The highest value observed during the specified period.
public const Statistic MAXIMUM
Field Value
Type | Description |
---|---|
Statistic |
Remarks
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.
public const Statistic MINIMUM
Field Value
Type | Description |
---|---|
Statistic |
Remarks
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.
public const Statistic SAMPLE_COUNT
Field Value
Type | Description |
---|---|
Statistic |
Remarks
Stability: Deprecated
SUM
(deprecated) All values submitted for the matching metric added together.
public const Statistic SUM
Field Value
Type | Description |
---|---|
Statistic |
Remarks
This statistic can be useful for determining the total volume of a metric.
Stability: Deprecated
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |