Package com.enonic.xp.aggregation

## Class StatsAggregation

- java.lang.Object
- - com.enonic.xp.aggregation.Aggregation
  - - com.enonic.xp.aggregation.MetricAggregation
    - - com.enonic.xp.aggregation.StatsAggregation

-     @PublicApi
      public class StatsAggregation
      extends MetricAggregation

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `StatsAggregation.Builder` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static StatsAggregation.Builder` | `create​(String name)` |
    `double` | `getAvg()` |
    `double` | `getCount()` |
    `double` | `getMax()` |
    `double` | `getMin()` |
    `double` | `getSum()` |

    - ### Methods inherited from class com.enonic.xp.aggregation.Aggregation

      `bucketAggregation, getName, getSubAggregations`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getAvg

          public double getAvg()

    - #### getCount

          public double getCount()

    - #### getMax

          public double getMax()

    - #### getMin

          public double getMin()

    - #### getSum

          public double getSum()

    - #### create

          public static StatsAggregation.Builder create​(String name)