Package io.opencensus.implcore.stats
Class MutableViewData
java.lang.Object
io.opencensus.implcore.stats.MutableViewData
- Direct Known Subclasses:
MutableViewData.CumulativeMutableViewData
,MutableViewData.IntervalMutableViewData
A mutable version of
ViewData
, used for recording stats and start/end time.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
private static final class
private static final class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract void
(package private) static MutableViewData
Constructs a newMutableViewData
.(package private) View
getView()
(package private) abstract void
record
(TagContext context, double value, Timestamp timestamp, Map<String, AttachmentValue> attachments) Record stats with the given tags.(package private) abstract void
(package private) abstract Metric
toMetric
(Timestamp now, CurrentState.State state) (package private) abstract ViewData
toViewData
(Timestamp now, CurrentState.State state) Convert thisMutableViewData
toViewData
.
-
Field Details
-
ZERO_TIMESTAMP
-
view
-
-
Constructor Details
-
MutableViewData
-
-
Method Details
-
create
Constructs a newMutableViewData
.- Parameters:
view
- theView
linked with thisMutableViewData
.start
- the startTimestamp
.- Returns:
- a
MutableViewData
.
-
getView
View getView() -
toMetric
-
record
abstract void record(TagContext context, double value, Timestamp timestamp, Map<String, AttachmentValue> attachments) Record stats with the given tags. -
toViewData
Convert thisMutableViewData
toViewData
. -
clearStats
abstract void clearStats() -
resumeStatsCollection
-