Package io.opencensus.metrics.export
Class Summary.Snapshot
- java.lang.Object
-
- io.opencensus.metrics.export.Summary.Snapshot
-
- Direct Known Subclasses:
AutoValue_Summary_Snapshot
- Enclosing class:
- Summary
@Immutable public abstract static class Summary.Snapshot extends java.lang.ObjectRepresents the summary observation of the recorded events over a sliding time window.- Since:
- 0.17
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSummary.Snapshot.ValueAtPercentileRepresents the value at a given percentile of a distribution.
-
Constructor Summary
Constructors Constructor Description Snapshot()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Summary.Snapshotcreate(java.lang.Long count, java.lang.Double sum, java.util.List<Summary.Snapshot.ValueAtPercentile> valueAtPercentiles)Creates aSummary.Snapshot.abstract java.lang.LonggetCount()Returns the number of values in thisSnapshot.abstract java.lang.DoublegetSum()Returns the sum of values in thisSnapshot.abstract java.util.List<Summary.Snapshot.ValueAtPercentile>getValueAtPercentiles()Returns the list ofValueAtPercentiles in thisSnapshot.
-
-
-
Method Detail
-
getCount
@Nullable public abstract java.lang.Long getCount()
Returns the number of values in thisSnapshot. If not available returnsnull.- Returns:
- the number of values in this
Snapshot. - Since:
- 0.17
-
getSum
@Nullable public abstract java.lang.Double getSum()
Returns the sum of values in thisSnapshot. If not available returnsnull.- Returns:
- the sum of values in this
Snapshot. - Since:
- 0.17
-
getValueAtPercentiles
public abstract java.util.List<Summary.Snapshot.ValueAtPercentile> getValueAtPercentiles()
Returns the list ofValueAtPercentiles in thisSnapshot.- Returns:
- the list of
ValueAtPercentiles in thisSnapshot. - Since:
- 0.17
-
create
public static Summary.Snapshot create(@Nullable java.lang.Long count, @Nullable java.lang.Double sum, java.util.List<Summary.Snapshot.ValueAtPercentile> valueAtPercentiles)
Creates aSummary.Snapshot.- Parameters:
count- the number of values in thisSnapshot.sum- the number of values in thisSnapshot.valueAtPercentiles- the list ofValueAtPercentile.- Returns:
- a
Snapshotwith the given values. - Since:
- 0.17
-
-