Class Statistic
Statistic to use over the aggregation period.
Inheritance
Namespace: Amazon.CDK.AWS.CloudWatch
Assembly: Amazon.CDK.AWS.CloudWatch.dll
Syntax (csharp)
public sealed class Statistic : Enum
Syntax (vb)
Public NotInheritable Class Statistic
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.CloudWatch;
DeliveryStream deliveryStream;
// Alarm that triggers when the per-second average of incoming bytes exceeds 90% of the current service limit
var incomingBytesPercentOfLimit = new MathExpression(new MathExpressionProps {
Expression = "incomingBytes / 300 / bytePerSecLimit",
UsingMetrics = new Dictionary<string, IMetric> {
{ "incomingBytes", deliveryStream.MetricIncomingBytes(new MetricOptions { Statistic = Statistic.SUM }) },
{ "bytePerSecLimit", deliveryStream.Metric("BytesPerSecondLimit") }
}
});
new Alarm(this, "Alarm", new AlarmProps {
Metric = incomingBytesPercentOfLimit,
Threshold = 0.9,
EvaluationPeriods = 3
});
Synopsis
Fields
AVERAGE | The value of Sum / SampleCount during the specified period. |
MAXIMUM | The highest value observed during the specified period. |
MINIMUM | The lowest value observed during the specified period. |
SAMPLE_COUNT | The count (number) of data points used for the statistical calculation. |
SUM | All values submitted for the matching metric added together. |
value__ |
Fields
AVERAGE
The value of Sum / SampleCount during the specified period.
public const Statistic AVERAGE
Field Value
Type | Description |
---|---|
Statistic |
MAXIMUM
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.
MINIMUM
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.
SAMPLE_COUNT
The count (number) of data points used for the statistical calculation.
public const Statistic SAMPLE_COUNT
Field Value
Type | Description |
---|---|
Statistic |
SUM
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.
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |