-
Notifications
You must be signed in to change notification settings - Fork 17
/
Statistic.go
53 lines (49 loc) · 2.3 KB
/
Statistic.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package awscloudwatch
// Statistic to use over the aggregation period.
//
// Example:
// var matchmakingRuleSet matchmakingRuleSet
//
// // Alarm that triggers when the per-second average of not placed matches exceed 10%
// ruleEvaluationRatio := cloudwatch.NewMathExpression(&MathExpressionProps{
// Expression: jsii.String("1 - (ruleEvaluationsPassed / ruleEvaluationsFailed)"),
// UsingMetrics: map[string]iMetric{
// "ruleEvaluationsPassed": matchmakingRuleSet.metricRuleEvaluationsPassed(&MetricOptions{
// "statistic": cloudwatch.Statistic_SUM,
// }),
// "ruleEvaluationsFailed": matchmakingRuleSet.metric(jsii.String("ruleEvaluationsFailed")),
// },
// })
// cloudwatch.NewAlarm(this, jsii.String("Alarm"), &AlarmProps{
// Metric: ruleEvaluationRatio,
// Threshold: jsii.Number(0.1),
// EvaluationPeriods: jsii.Number(3),
// })
//
// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html
//
// Deprecated: Use one of the factory methods on `Stats` to produce statistics strings.
type Statistic string
const (
// The count (number) of data points used for the statistical calculation.
// Deprecated: Use one of the factory methods on `Stats` to produce statistics strings.
Statistic_SAMPLE_COUNT Statistic = "SAMPLE_COUNT"
// The value of Sum / SampleCount during the specified period.
// Deprecated: Use one of the factory methods on `Stats` to produce statistics strings.
Statistic_AVERAGE Statistic = "AVERAGE"
// All values submitted for the matching metric added together.
//
// This statistic can be useful for determining the total volume of a metric.
// Deprecated: Use one of the factory methods on `Stats` to produce statistics strings.
Statistic_SUM Statistic = "SUM"
// The lowest value observed during the specified period.
//
// You can use this value to determine low volumes of activity for your application.
// Deprecated: Use one of the factory methods on `Stats` to produce statistics strings.
Statistic_MINIMUM Statistic = "MINIMUM"
// The highest value observed during the specified period.
//
// You can use this value to determine high volumes of activity for your application.
// Deprecated: Use one of the factory methods on `Stats` to produce statistics strings.
Statistic_MAXIMUM Statistic = "MAXIMUM"
)