Class Summary
java.lang.Object
io.opencensus.metrics.export.Summary
- Direct Known Subclasses:
AutoValue_Summary
Implementation of the
Distribution as a summary of observations.
This is not recommended, since it cannot be aggregated.
- Since:
- 0.17
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the summary observation of the recorded events over a sliding time window. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcheckCountAndSum(Long count, Double sum) static Summarycreate(Long count, Double sum, Summary.Snapshot snapshot) Creates aSummary.abstract LonggetCount()Returns the aggregated count.abstract Summary.SnapshotReturns theSummary.Snapshot.abstract DoublegetSum()Returns the aggregated sum.
-
Constructor Details
-
Summary
Summary()
-
-
Method Details
-
create
Creates aSummary.- Parameters:
count- the count of the population values.sum- the sum of the population values.snapshot- bucket boundaries of a histogram.- Returns:
- a
Summarywith the given values. - Since:
- 0.17
-
getCount
-
getSum
-
getSnapshot
Returns theSummary.Snapshot.- Returns:
- the
Snapshot. - Since:
- 0.17
-
checkCountAndSum
-