Package io.opencensus.metrics.export
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 class
Represents the summary observation of the recorded events over a sliding time window. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
checkCountAndSum
(Long count, Double sum) static Summary
create
(Long count, Double sum, Summary.Snapshot snapshot) Creates aSummary
.abstract Long
getCount()
Returns the aggregated count.abstract Summary.Snapshot
Returns theSummary.Snapshot
.abstract Double
getSum()
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
Summary
with the given values. - Since:
- 0.17
-
getCount
Returns the aggregated count. If not available returnsnull
.- Returns:
- the aggregated count.
- Since:
- 0.17
-
getSum
Returns the aggregated sum. If not available returnsnull
.- Returns:
- the aggregated sum.
- Since:
- 0.17
-
getSnapshot
Returns theSummary.Snapshot
.- Returns:
- the
Snapshot
. - Since:
- 0.17
-
checkCountAndSum
-