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
See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html
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 | (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. |