* A counter is a cumulative metric that represents a single monotonically increasing counter whose value can only increase or be reset to zero on restart.
* A counter is a cumulative metric that represents a single monotonically increasing counter whose value can only increase.
*
* The source code of this class doesn't include the implementation, all logic are injected from its activation.
* A summary sample observations (usual things like request durations and response sizes).
* While it also provides a total count of observations and a sum of all observed values, it calculates configurable quartiles over a sliding time window.
* The histogram provides detailed data in each data group.
* Histogram represents the distribution of data. It includes the buckets representing continuous ranges of values, with
* the num of collected values in every specific range. The ranges could start from any value(default 0) to positive
* infinitive. They can be set through the constructor and immutable after that.
*
* The source code of this class doesn't include the implementation, all logic are injected from its activation.
*/
publicclassHistogramextendsBaseMeter{
...
...
@@ -34,8 +36,7 @@ public class Histogram extends BaseMeter {
}
/**
* Add value into the histogram, automatic analyze what bucket count need to be increment
* [step1, step2)
* Add value into the histogram, automatic analyze what bucket count need to be increment [step1, step2)
*/
publicvoidaddValue(doublevalue){
}
...
...
@@ -53,7 +54,7 @@ public class Histogram extends BaseMeter {
}
/**
* Setting bucket steps
* Set bucket steps, the minimal values of every buckets besides the {@link #minValue}.
*/
publicBuildersteps(List<Double>steps){
this.steps=newArrayList<>(steps);
...
...
@@ -61,7 +62,7 @@ public class Histogram extends BaseMeter {
}
/**
* Setting min value, default is zero
* Set min value, default is zero
*/
publicBuilderminValue(doubleminValue){
this.minValue=minValue;
...
...
@@ -84,7 +85,7 @@ public class Histogram extends BaseMeter {
// verify steps with except min value
if(steps.get(0)<minValue){
thrownewIllegalArgumentException("First step must bigger than min value");
thrownewIllegalArgumentException("Step[0] must be bigger than min value");
* A counter is a cumulative metric that represents a single monotonically increasing counter whose value can only increase or be reset to zero on restart.
* A counter is a cumulative metric that represents a single monotonically increasing counter whose value can only increase.
* A summary sample observations (usual things like request durations and response sizes).
* While it also provides a total count of observations and a sum of all observed values, it calculates configurable quartiles over a sliding time window.
* The histogram provides detailed data in each data group.
* Histogram represents the distribution of data. It includes the buckets representing continuous ranges of values, with
* the num of collected values in every specific range. The ranges could start from any value(default 0) to positive
* infinitive. They can be set through the constructor and immutable after that.
*/
publicclassHistogramextendsBaseMeter{
protectedfinalBucket[]buckets;
/**
* @param meterId as the unique id of this meter instance
* @param steps presents the minimal value of every step