Class Stats
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
Example:
Dashboard dashboard;
Metric executionCountMetric;
Metric errorCountMetric;
dashboard.addWidgets(GraphWidget.Builder.create()
.title("Executions vs error rate")
.left(List.of(executionCountMetric))
.right(List.of(errorCountMetric.with(MetricOptions.builder()
.statistic(Stats.AVERAGE)
.label("Error rate")
.color(Color.GREEN)
.build())))
.build());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe value of Sum / SampleCount during the specified period.static final StringInterquartile mean (IQM) is the trimmed mean of the interquartile range, or the middle 50% of values.static final StringThe highest value observed during the specified period.static final StringThe lowest value observed during the specified period.static final StringThe count (number) of data points used for the statistical calculation.static final StringAll values submitted for the matching metric added together. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringA shorter alias forpercentile().static Stringpercentile(Number percentile) Percentile indicates the relative standing of a value in a dataset.static StringpercentileRank(Number v1) Percentile rank (PR) is the percentage of values that meet a fixed threshold.static StringpercentileRank(Number v1, Number v2) Percentile rank (PR) is the percentage of values that meet a fixed threshold.static StringShorter alias forpercentileRank().static StringShorter alias forpercentileRank().static StringShorter alias fortrimmedCount().static StringShorter alias fortrimmedCount().static StringA shorter alias fortrimmedMean().static StringA shorter alias fortrimmedMean().static StringtrimmedCount(Number p1) Trimmed count (TC) is the number of data points in the chosen range for a trimmed mean statistic.static StringtrimmedCount(Number p1, Number p2) Trimmed count (TC) is the number of data points in the chosen range for a trimmed mean statistic.static StringtrimmedMean(Number p1) Trimmed mean (TM) is the mean of all values that are between two specified boundaries.static StringtrimmedMean(Number p1, Number p2) Trimmed mean (TM) is the mean of all values that are between two specified boundaries.static StringtrimmedSum(Number p1) Trimmed sum (TS) is the sum of the values of data points in a chosen range for a trimmed mean statistic.static StringtrimmedSum(Number p1, Number p2) Trimmed sum (TS) is the sum of the values of data points in a chosen range for a trimmed mean statistic.static StringShorter alias fortrimmedSum().static StringShorter alias fortrimmedSum().static StringwinsorizedMean(Number p1) Winsorized mean (WM) is similar to trimmed mean.static StringwinsorizedMean(Number p1, Number p2) Winsorized mean (WM) is similar to trimmed mean.static StringA shorter alias forwinsorizedMean().static StringA shorter alias forwinsorizedMean().Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
AVERAGE
The value of Sum / SampleCount during the specified period. -
IQM
Interquartile mean (IQM) is the trimmed mean of the interquartile range, or the middle 50% of values.It is equivalent to
trimmedMean(25, 75). -
MAXIMUM
The highest value observed during the specified period.You can use this value to determine high volumes of activity for your application.
-
MINIMUM
The lowest value observed during the specified period.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. -
SUM
All values submitted for the matching metric added together.This statistic can be useful for determining the total volume of a metric.
-
-
Constructor Details
-
Stats
protected Stats(software.amazon.jsii.JsiiObjectRef objRef) -
Stats
protected Stats(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Stats
@Stability(Stable) protected Stats()
-
-
Method Details
-
p
A shorter alias forpercentile().- Parameters:
percentile- This parameter is required.
-
percentile
Percentile indicates the relative standing of a value in a dataset.Percentiles help you get a better understanding of the distribution of your metric data.
For example,
p(90)is the 90th percentile and means that 90% of the data within the period is lower than this value and 10% of the data is higher than this value.- Parameters:
percentile- This parameter is required.
-
percentileRank
@Stability(Stable) @NotNull public static String percentileRank(@NotNull Number v1, @Nullable Number v2) Percentile rank (PR) is the percentage of values that meet a fixed threshold.- If two numbers are given, they define the lower and upper bounds in absolute values, respectively.
- If one number is given, it defines the upper bound (the lower bound is assumed to be 0).
For example,
percentileRank(300)returns the percentage of data points that have a value of 300 or less.percentileRank(100, 2000)returns the percentage of data points that have a value between 100 and 2000.- Parameters:
v1- This parameter is required.v2-
-
percentileRank
Percentile rank (PR) is the percentage of values that meet a fixed threshold.- If two numbers are given, they define the lower and upper bounds in absolute values, respectively.
- If one number is given, it defines the upper bound (the lower bound is assumed to be 0).
For example,
percentileRank(300)returns the percentage of data points that have a value of 300 or less.percentileRank(100, 2000)returns the percentage of data points that have a value between 100 and 2000.- Parameters:
v1- This parameter is required.
-
pr
Shorter alias forpercentileRank().- Parameters:
v1- This parameter is required.v2-
-
pr
Shorter alias forpercentileRank().- Parameters:
v1- This parameter is required.
-
tc
Shorter alias fortrimmedCount().- Parameters:
p1- This parameter is required.p2-
-
tc
Shorter alias fortrimmedCount().- Parameters:
p1- This parameter is required.
-
tm
A shorter alias fortrimmedMean().- Parameters:
p1- This parameter is required.p2-
-
tm
A shorter alias fortrimmedMean().- Parameters:
p1- This parameter is required.
-
trimmedCount
@Stability(Stable) @NotNull public static String trimmedCount(@NotNull Number p1, @Nullable Number p2) Trimmed count (TC) is the number of data points in the chosen range for a trimmed mean statistic.- If two numbers are given, they define the lower and upper bounds in percentages, respectively.
- If one number is given, it defines the upper bound (the lower bound is assumed to be 0).
For example,
tc(90)returns the number of data points not including any data points that fall in the highest 10% of the values.tc(10, 90)returns the number of data points not including any data points that fall in the lowest 10% of the values and the highest 90% of the values.- Parameters:
p1- This parameter is required.p2-
-
trimmedCount
Trimmed count (TC) is the number of data points in the chosen range for a trimmed mean statistic.- If two numbers are given, they define the lower and upper bounds in percentages, respectively.
- If one number is given, it defines the upper bound (the lower bound is assumed to be 0).
For example,
tc(90)returns the number of data points not including any data points that fall in the highest 10% of the values.tc(10, 90)returns the number of data points not including any data points that fall in the lowest 10% of the values and the highest 90% of the values.- Parameters:
p1- This parameter is required.
-
trimmedMean
@Stability(Stable) @NotNull public static String trimmedMean(@NotNull Number p1, @Nullable Number p2) Trimmed mean (TM) is the mean of all values that are between two specified boundaries.Values outside of the boundaries are ignored when the mean is calculated. You define the boundaries as one or two numbers between 0 and 100, up to 10 decimal places. The numbers are percentages.
- If two numbers are given, they define the lower and upper bounds in percentages, respectively.
- If one number is given, it defines the upper bound (the lower bound is assumed to be 0).
For example,
tm(90)calculates the average after removing the 10% of data points with the highest values;tm(10, 90)calculates the average after removing the 10% with the lowest and 10% with the highest values.- Parameters:
p1- This parameter is required.p2-
-
trimmedMean
Trimmed mean (TM) is the mean of all values that are between two specified boundaries.Values outside of the boundaries are ignored when the mean is calculated. You define the boundaries as one or two numbers between 0 and 100, up to 10 decimal places. The numbers are percentages.
- If two numbers are given, they define the lower and upper bounds in percentages, respectively.
- If one number is given, it defines the upper bound (the lower bound is assumed to be 0).
For example,
tm(90)calculates the average after removing the 10% of data points with the highest values;tm(10, 90)calculates the average after removing the 10% with the lowest and 10% with the highest values.- Parameters:
p1- This parameter is required.
-
trimmedSum
@Stability(Stable) @NotNull public static String trimmedSum(@NotNull Number p1, @Nullable Number p2) Trimmed sum (TS) is the sum of the values of data points in a chosen range for a trimmed mean statistic.It is equivalent to
(Trimmed Mean) * (Trimmed count).- If two numbers are given, they define the lower and upper bounds in percentages, respectively.
- If one number is given, it defines the upper bound (the lower bound is assumed to be 0).
For example,
ts(90)returns the sum of the data points not including any data points that fall in the highest 10% of the values.ts(10, 90)returns the sum of the data points not including any data points that fall in the lowest 10% of the values and the highest 90% of the values.- Parameters:
p1- This parameter is required.p2-
-
trimmedSum
Trimmed sum (TS) is the sum of the values of data points in a chosen range for a trimmed mean statistic.It is equivalent to
(Trimmed Mean) * (Trimmed count).- If two numbers are given, they define the lower and upper bounds in percentages, respectively.
- If one number is given, it defines the upper bound (the lower bound is assumed to be 0).
For example,
ts(90)returns the sum of the data points not including any data points that fall in the highest 10% of the values.ts(10, 90)returns the sum of the data points not including any data points that fall in the lowest 10% of the values and the highest 90% of the values.- Parameters:
p1- This parameter is required.
-
ts
Shorter alias fortrimmedSum().- Parameters:
p1- This parameter is required.p2-
-
ts
Shorter alias fortrimmedSum().- Parameters:
p1- This parameter is required.
-
winsorizedMean
@Stability(Stable) @NotNull public static String winsorizedMean(@NotNull Number p1, @Nullable Number p2) Winsorized mean (WM) is similar to trimmed mean.However, with winsorized mean, the values that are outside the boundary are not ignored, but instead are considered to be equal to the value at the edge of the appropriate boundary. After this normalization, the average is calculated. You define the boundaries as one or two numbers between 0 and 100, up to 10 decimal places.
- If two numbers are given, they define the lower and upper bounds in percentages, respectively.
- If one number is given, it defines the upper bound (the lower bound is assumed to be 0).
For example,
tm(90)calculates the average after removing the 10% of data points with the highest values;tm(10, 90)calculates the average after removing the 10% with the lowest and 10% with the highest values.For example,
wm(90)calculates the average while treating the 10% of the highest values to be equal to the value at the 90th percentile.wm(10, 90)calculates the average while treaing the bottom 10% and the top 10% of values to be equal to the boundary values.- Parameters:
p1- This parameter is required.p2-
-
winsorizedMean
Winsorized mean (WM) is similar to trimmed mean.However, with winsorized mean, the values that are outside the boundary are not ignored, but instead are considered to be equal to the value at the edge of the appropriate boundary. After this normalization, the average is calculated. You define the boundaries as one or two numbers between 0 and 100, up to 10 decimal places.
- If two numbers are given, they define the lower and upper bounds in percentages, respectively.
- If one number is given, it defines the upper bound (the lower bound is assumed to be 0).
For example,
tm(90)calculates the average after removing the 10% of data points with the highest values;tm(10, 90)calculates the average after removing the 10% with the lowest and 10% with the highest values.For example,
wm(90)calculates the average while treating the 10% of the highest values to be equal to the value at the 90th percentile.wm(10, 90)calculates the average while treaing the bottom 10% and the top 10% of values to be equal to the boundary values.- Parameters:
p1- This parameter is required.
-
wm
A shorter alias forwinsorizedMean().- Parameters:
p1- This parameter is required.p2-
-
wm
A shorter alias forwinsorizedMean().- Parameters:
p1- This parameter is required.
-