Package io.opencensus.implcore.stats
Class IntervalBucket
java.lang.Object
io.opencensus.implcore.stats.IntervalBucket
The bucket with aggregated
MeasureValue
s used for IntervalViewData
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Aggregation
private final Duration
private final Measure
private final Timestamp
private final Map
<List<TagValue>, MutableAggregation> private static final Duration
-
Constructor Summary
ConstructorsConstructorDescriptionIntervalBucket
(Timestamp start, Duration duration, Aggregation aggregation, Measure measure) -
Method Summary
Modifier and TypeMethodDescription(package private) void
(package private) double
getFraction
(Timestamp now) (package private) Timestamp
getStart()
(package private) Map
<List<TagValue>, MutableAggregation> (package private) void
record
(List<TagValue> tagValues, double value, Map<String, AttachmentValue> attachments, Timestamp timestamp)
-
Field Details
-
ZERO
-
start
-
duration
-
aggregation
-
measure
-
tagValueAggregationMap
-
-
Constructor Details
-
IntervalBucket
IntervalBucket(Timestamp start, Duration duration, Aggregation aggregation, Measure measure)
-
-
Method Details
-
getTagValueAggregationMap
Map<List<TagValue>,MutableAggregation> getTagValueAggregationMap() -
getStart
Timestamp getStart() -
record
-
getFraction
-
clearStats
void clearStats()
-