@Immutable public abstract static class Summary.Snapshot extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Summary.Snapshot.ValueAtPercentile
Represents the value at a given percentile of a distribution.
|
| Constructor and Description |
|---|
Snapshot() |
| Modifier and Type | Method and Description |
|---|---|
static Summary.Snapshot |
create(Long count,
Double sum,
List<Summary.Snapshot.ValueAtPercentile> valueAtPercentiles)
Creates a
Summary.Snapshot. |
abstract Long |
getCount()
Returns the number of values in this
Snapshot. |
abstract Double |
getSum()
Returns the sum of values in this
Snapshot. |
abstract List<Summary.Snapshot.ValueAtPercentile> |
getValueAtPercentiles()
Returns the list of
ValueAtPercentiles in this Snapshot. |
@Nullable public abstract Long getCount()
Snapshot. If not available returns null.Snapshot.@Nullable public abstract Double getSum()
Snapshot. If not available returns null.Snapshot.public abstract List<Summary.Snapshot.ValueAtPercentile> getValueAtPercentiles()
ValueAtPercentiles in this Snapshot.ValueAtPercentiles in this Snapshot.public static Summary.Snapshot create(@Nullable Long count, @Nullable Double sum, List<Summary.Snapshot.ValueAtPercentile> valueAtPercentiles)
Summary.Snapshot.count - the number of values in this Snapshot.sum - the number of values in this Snapshot.valueAtPercentiles - the list of ValueAtPercentile.Snapshot with the given values.