Uses of Class
io.opencensus.common.Timestamp
Packages that use Timestamp
Package
Description
Common API between different packages in this artifact.
Interfaces and implementations that are internal to OpenCensus.
This package describes common data models in Metrics that are shared across multiple packages.
API for stats recording.
API for distributed tracing.
-
Uses of Timestamp in io.opencensus.common
Subclasses of Timestamp in io.opencensus.commonMethods in io.opencensus.common that return TimestampModifier and TypeMethodDescriptionTimestamp.addDuration
(Duration duration) Returns aTimestamp
calculated as thisTimestamp
plus someDuration
.Timestamp.addNanos
(long nanosToAdd) Returns aTimestamp
calculated as thisTimestamp
plus some number of nanoseconds.static Timestamp
Timestamp.create
(long seconds, int nanos) Creates a new timestamp from given seconds and nanoseconds.static Timestamp
Timestamp.fromMillis
(long epochMilli) Creates a new timestamp from the given milliseconds.abstract Timestamp
Clock.now()
Obtains the current instant from this clock.private static Timestamp
Timestamp.ofEpochSecond
(long epochSecond, long nanoAdjustment) private Timestamp
Timestamp.plus
(long secondsToAdd, long nanosToAdd) Methods in io.opencensus.common with parameters of type Timestamp -
Uses of Timestamp in io.opencensus.contrib.zpages
Methods in io.opencensus.contrib.zpages with parameters of type Timestamp -
Uses of Timestamp in io.opencensus.implcore.common
Methods in io.opencensus.implcore.common that return Timestamp -
Uses of Timestamp in io.opencensus.implcore.internal
Fields in io.opencensus.implcore.internal declared as TimestampMethods in io.opencensus.implcore.internal that return TimestampConstructors in io.opencensus.implcore.internal with parameters of type Timestamp -
Uses of Timestamp in io.opencensus.implcore.metrics
Fields in io.opencensus.implcore.metrics declared as TimestampModifier and TypeFieldDescriptionprivate final Timestamp
DerivedDoubleCumulativeImpl.PointWithFunction.startTime
private final Timestamp
DerivedDoubleCumulativeImpl.startTime
private final Timestamp
DerivedLongCumulativeImpl.PointWithFunction.startTime
private final Timestamp
DerivedLongCumulativeImpl.startTime
private final Timestamp
DoubleCumulativeImpl.PointImpl.startTime
private final Timestamp
DoubleCumulativeImpl.startTime
private final Timestamp
LongCumulativeImpl.PointImpl.startTime
private final Timestamp
LongCumulativeImpl.startTime
Constructors in io.opencensus.implcore.metrics with parameters of type TimestampModifierConstructorDescription(package private)
DerivedDoubleCumulativeImpl
(String name, String description, String unit, List<LabelKey> labelKeys, Map<LabelKey, LabelValue> constantLabels, Timestamp startTime) (package private)
DerivedLongCumulativeImpl
(String name, String description, String unit, List<LabelKey> labelKeys, Map<LabelKey, LabelValue> constantLabels, Timestamp startTime) (package private)
DoubleCumulativeImpl
(String name, String description, String unit, List<LabelKey> labelKeys, Map<LabelKey, LabelValue> constantLabels, Timestamp startTime) (package private)
LongCumulativeImpl
(String name, String description, String unit, List<LabelKey> labelKeys, Map<LabelKey, LabelValue> constantLabels, Timestamp startTime) (package private)
PointImpl
(List<LabelValue> labelValues, Timestamp startTime) (package private)
PointImpl
(List<LabelValue> labelValues, Timestamp startTime) (package private)
PointWithFunction
(List<LabelValue> labelValues, T obj, ToDoubleFunction<T> function, Timestamp startTime) (package private)
PointWithFunction
(List<LabelValue> labelValues, T obj, ToLongFunction<T> function, Timestamp startTime) -
Uses of Timestamp in io.opencensus.implcore.stats
Fields in io.opencensus.implcore.stats declared as TimestampModifier and TypeFieldDescriptionprivate final Timestamp
IntervalBucket.start
private final Timestamp
MutableViewData.CreateCumulative.start
private final Timestamp
MutableViewData.CreateInterval.start
private Timestamp
MutableViewData.CumulativeMutableViewData.start
(package private) static final Timestamp
MutableViewData.ZERO_TIMESTAMP
Methods in io.opencensus.implcore.stats that return TimestampModifier and TypeMethodDescription(package private) Timestamp
IntervalBucket.getStart()
private static Timestamp
MutableViewData.IntervalMutableViewData.subtractDuration
(Timestamp timestamp, Duration duration) Methods in io.opencensus.implcore.stats with parameters of type TimestampModifier and TypeMethodDescription(package private) abstract void
MutableAggregation.add
(double value, Map<String, AttachmentValue> attachments, Timestamp timestamp) Put a new value into the MutableAggregation.(package private) void
MutableAggregation.MutableCount.add
(double value, Map<String, AttachmentValue> attachments, Timestamp timestamp) (package private) void
MutableAggregation.MutableDistribution.add
(double value, Map<String, AttachmentValue> attachments, Timestamp timestamp) (package private) void
MutableAggregation.MutableLastValueDouble.add
(double value, Map<String, AttachmentValue> attachments, Timestamp timestamp) (package private) void
MutableAggregation.MutableMean.add
(double value, Map<String, AttachmentValue> attachments, Timestamp timestamp) (package private) void
MutableAggregation.MutableSumDouble.add
(double value, Map<String, AttachmentValue> attachments, Timestamp timestamp) private Map
<List<TagValue>, AggregationData> MutableViewData.IntervalMutableViewData.combineBucketsAndGetAggregationMap
(Timestamp now) (package private) static MutableViewData
Constructs a newMutableViewData
.(package private) double
IntervalBucket.getFraction
(Timestamp now) private void
MutableViewData.CumulativeMutableViewData.handleTimeRewinds
(Timestamp now) This method attemps to migrate this view into a reasonable state in the event of time going backwards.private static void
MutableViewData.IntervalMutableViewData.putBucketsIntoMultiMap
(ArrayDeque<IntervalBucket> buckets, com.google.common.collect.Multimap<List<TagValue>, MutableAggregation> multimap, Aggregation aggregation, Measure measure, Timestamp now) (package private) void
IntervalBucket.record
(List<TagValue> tagValues, double value, Map<String, AttachmentValue> attachments, Timestamp timestamp) (package private) void
MeasureToViewMap.record
(TagContext tags, MeasureMapInternal stats, Timestamp timestamp) (package private) void
MutableViewData.CumulativeMutableViewData.record
(TagContext context, double value, Timestamp timestamp, Map<String, AttachmentValue> attachments) (package private) void
MutableViewData.IntervalMutableViewData.record
(TagContext context, double value, Timestamp timestamp, Map<String, AttachmentValue> attachments) (package private) abstract void
MutableViewData.record
(TagContext context, double value, Timestamp timestamp, Map<String, AttachmentValue> attachments) Record stats with the given tags.private void
MutableViewData.IntervalMutableViewData.refreshBucketList
(Timestamp now) (package private) void
MeasureToViewMap.resumeStatsCollection
(Timestamp now) (package private) void
MutableViewData.CumulativeMutableViewData.resumeStatsCollection
(Timestamp now) (package private) void
MutableViewData.IntervalMutableViewData.resumeStatsCollection
(Timestamp now) (package private) abstract void
MutableViewData.resumeStatsCollection
(Timestamp now) private void
MutableViewData.IntervalMutableViewData.shiftBucketList
(long numOfPadBuckets, Timestamp now) private static Timestamp
MutableViewData.IntervalMutableViewData.subtractDuration
(Timestamp timestamp, Duration duration) (package private) Metric
MutableViewData.CumulativeMutableViewData.toMetric
(Timestamp now, CurrentState.State state) (package private) Metric
MutableViewData.IntervalMutableViewData.toMetric
(Timestamp now, CurrentState.State state) (package private) abstract Metric
MutableViewData.toMetric
(Timestamp now, CurrentState.State state) (package private) Point
(package private) Point
(package private) Point
(package private) Point
(package private) Point
(package private) Point
(package private) Point
(package private) abstract Point
(package private) ViewData
MutableViewData.CumulativeMutableViewData.toViewData
(Timestamp now, CurrentState.State state) (package private) ViewData
MutableViewData.IntervalMutableViewData.toViewData
(Timestamp now, CurrentState.State state) (package private) abstract ViewData
MutableViewData.toViewData
(Timestamp now, CurrentState.State state) Convert thisMutableViewData
toViewData
.Constructors in io.opencensus.implcore.stats with parameters of type TimestampModifierConstructorDescriptionprivate
CreateCumulative
(View view, Timestamp start) private
CreateInterval
(View view, Timestamp start) private
CumulativeMutableViewData
(View view, Timestamp start) (package private)
IntervalBucket
(Timestamp start, Duration duration, Aggregation aggregation, Measure measure) private
IntervalMutableViewData
(View view, Timestamp start) -
Uses of Timestamp in io.opencensus.internal
Fields in io.opencensus.internal declared as TimestampMethods in io.opencensus.internal that return Timestamp -
Uses of Timestamp in io.opencensus.metrics.data
Fields in io.opencensus.metrics.data declared as TimestampMethods in io.opencensus.metrics.data that return TimestampModifier and TypeMethodDescriptionAutoValue_Exemplar.getTimestamp()
abstract Timestamp
Exemplar.getTimestamp()
Returns the time that thisExemplar
's value was recorded.Methods in io.opencensus.metrics.data with parameters of type TimestampModifier and TypeMethodDescriptionstatic Exemplar
Exemplar.create
(double value, Timestamp timestamp, Map<String, AttachmentValue> attachments) Creates anExemplar
.Constructors in io.opencensus.metrics.data with parameters of type TimestampModifierConstructorDescription(package private)
AutoValue_Exemplar
(double value, Timestamp timestamp, Map<String, AttachmentValue> attachments) -
Uses of Timestamp in io.opencensus.metrics.export
Fields in io.opencensus.metrics.export declared as TimestampModifier and TypeFieldDescriptionprivate final Timestamp
AutoValue_TimeSeries.startTimestamp
private final Timestamp
AutoValue_Point.timestamp
Methods in io.opencensus.metrics.export that return TimestampModifier and TypeMethodDescriptionAutoValue_TimeSeries.getStartTimestamp()
abstract Timestamp
TimeSeries.getStartTimestamp()
Returns the startTimestamp
of thisTimeSeries
if thePoint
s are cumulative, ornull
if thePoint
s are gauge.AutoValue_Point.getTimestamp()
abstract Timestamp
Point.getTimestamp()
Methods in io.opencensus.metrics.export with parameters of type TimestampModifier and TypeMethodDescriptionstatic Point
Creates aPoint
.static TimeSeries
Creates aTimeSeries
.private static TimeSeries
TimeSeries.createInternal
(List<LabelValue> labelValues, List<Point> points, Timestamp startTimestamp) Creates aTimeSeries
.static TimeSeries
TimeSeries.createWithOnePoint
(List<LabelValue> labelValues, Point point, Timestamp startTimestamp) Creates aTimeSeries
.Constructors in io.opencensus.metrics.export with parameters of type TimestampModifierConstructorDescription(package private)
AutoValue_Point
(Value value, Timestamp timestamp) (package private)
AutoValue_TimeSeries
(List<LabelValue> labelValues, List<Point> points, Timestamp startTimestamp) -
Uses of Timestamp in io.opencensus.stats
Fields in io.opencensus.stats declared as TimestampModifier and TypeFieldDescriptionprivate final Timestamp
AutoValue_ViewData_AggregationWindowData_CumulativeData.end
Deprecated.private final Timestamp
AutoValue_ViewData_AggregationWindowData_IntervalData.end
Deprecated.private final Timestamp
AutoValue_ViewData.end
private final Timestamp
AutoValue_ViewData_AggregationWindowData_CumulativeData.start
Deprecated.private final Timestamp
AutoValue_ViewData.start
private static final Timestamp
NoopStats.NoopViewManager.ZERO_TIMESTAMP
Methods in io.opencensus.stats that return TimestampModifier and TypeMethodDescriptionAutoValue_ViewData_AggregationWindowData_CumulativeData.getEnd()
Deprecated.AutoValue_ViewData_AggregationWindowData_IntervalData.getEnd()
Deprecated.AutoValue_ViewData.getEnd()
abstract Timestamp
ViewData.AggregationWindowData.CumulativeData.getEnd()
Deprecated.Returns the endTimestamp
for aViewData.AggregationWindowData.CumulativeData
.abstract Timestamp
ViewData.AggregationWindowData.IntervalData.getEnd()
Deprecated.Returns the endTimestamp
for anViewData.AggregationWindowData.IntervalData
.abstract Timestamp
ViewData.getEnd()
Returns the endTimestamp
for aViewData
.AutoValue_ViewData_AggregationWindowData_CumulativeData.getStart()
Deprecated.AutoValue_ViewData.getStart()
abstract Timestamp
ViewData.AggregationWindowData.CumulativeData.getStart()
Deprecated.Returns the startTimestamp
for aViewData.AggregationWindowData.CumulativeData
.abstract Timestamp
ViewData.getStart()
Returns the startTimestamp
for aViewData
.Methods in io.opencensus.stats with parameters of type TimestampModifier and TypeMethodDescriptionDeprecated.Constructs a newViewData.AggregationWindowData.CumulativeData
.Deprecated.Constructs a newViewData.AggregationWindowData.IntervalData
.static ViewData
ViewData.create
(View view, Map<? extends List<TagValue>, ? extends AggregationData> map, Timestamp start, Timestamp end) Constructs a newViewData
.private static ViewData
ViewData.createInternal
(View view, Map<List<TagValue>, AggregationData> aggregationMap, ViewData.AggregationWindowData window, Timestamp start, Timestamp end) Constructors in io.opencensus.stats with parameters of type TimestampModifierConstructorDescription(package private)
AutoValue_ViewData
(View view, Map<List<TagValue>, AggregationData> aggregationMap, ViewData.AggregationWindowData windowData, Timestamp start, Timestamp end) (package private)
Deprecated.(package private)
Deprecated. -
Uses of Timestamp in io.opencensus.testing.common
Fields in io.opencensus.testing.common declared as TimestampMethods in io.opencensus.testing.common that return TimestampModifier and TypeMethodDescriptionTestClock.now()
private static Timestamp
TestClock.validateNanos
(Timestamp time) Methods in io.opencensus.testing.common with parameters of type Timestamp -
Uses of Timestamp in io.opencensus.trace
Fields in io.opencensus.trace declared as TimestampModifier and TypeFieldDescriptionprivate Timestamp
AutoValue_NetworkEvent.Builder.kernelTimestamp
private final Timestamp
AutoValue_NetworkEvent.kernelTimestamp
Deprecated.Methods in io.opencensus.trace that return TimestampModifier and TypeMethodDescriptionAutoValue_NetworkEvent.getKernelTimestamp()
Deprecated.abstract Timestamp
NetworkEvent.getKernelTimestamp()
Deprecated.Returns the kernel timestamp associated with theNetworkEvent
ornull
if not set.Methods in io.opencensus.trace with parameters of type TimestampModifier and TypeMethodDescriptionAutoValue_NetworkEvent.Builder.setKernelTimestamp
(Timestamp kernelTimestamp) abstract NetworkEvent.Builder
NetworkEvent.Builder.setKernelTimestamp
(Timestamp kernelTimestamp) Deprecated.Sets the kernel timestamp.Constructors in io.opencensus.trace with parameters of type TimestampModifierConstructorDescriptionprivate
AutoValue_NetworkEvent
(Timestamp kernelTimestamp, NetworkEvent.Type type, long messageId, long uncompressedMessageSize, long compressedMessageSize) Deprecated. -
Uses of Timestamp in io.opencensus.trace.export
Fields in io.opencensus.trace.export declared as TimestampModifier and TypeFieldDescriptionprivate final Timestamp
AutoValue_SpanData.endTimestamp
private final Timestamp
AutoValue_SpanData.startTimestamp
private final Timestamp
AutoValue_SpanData_TimedEvent.timestamp
Methods in io.opencensus.trace.export that return TimestampModifier and TypeMethodDescriptionAutoValue_SpanData.getEndTimestamp()
abstract Timestamp
SpanData.getEndTimestamp()
Returns the endTimestamp
ornull
if theSpan
is still active.AutoValue_SpanData.getStartTimestamp()
abstract Timestamp
SpanData.getStartTimestamp()
Returns the startTimestamp
of thisSpan
.AutoValue_SpanData_TimedEvent.getTimestamp()
abstract Timestamp
SpanData.TimedEvent.getTimestamp()
Returns theTimestamp
of this event.Methods in io.opencensus.trace.export with parameters of type TimestampModifier and TypeMethodDescriptionstatic SpanData
SpanData.create
(SpanContext context, SpanId parentSpanId, Boolean hasRemoteParent, String name, Timestamp startTimestamp, SpanData.Attributes attributes, SpanData.TimedEvents<Annotation> annotations, SpanData.TimedEvents<? extends BaseMessageEvent> messageOrNetworkEvents, SpanData.Links links, Integer childSpanCount, Status status, Timestamp endTimestamp) Deprecated.static SpanData
SpanData.create
(SpanContext context, SpanId parentSpanId, Boolean hasRemoteParent, String name, Span.Kind kind, Timestamp startTimestamp, SpanData.Attributes attributes, SpanData.TimedEvents<Annotation> annotations, SpanData.TimedEvents<? extends BaseMessageEvent> messageOrNetworkEvents, SpanData.Links links, Integer childSpanCount, Status status, Timestamp endTimestamp) Returns a new immutableSpanData
.static <T> SpanData.TimedEvent
<T> Returns a new immutableTimedEvent<T>
.Constructors in io.opencensus.trace.export with parameters of type TimestampModifierConstructorDescription(package private)
AutoValue_SpanData
(SpanContext context, SpanId parentSpanId, Boolean hasRemoteParent, String name, Span.Kind kind, Timestamp startTimestamp, SpanData.Attributes attributes, SpanData.TimedEvents<Annotation> annotations, SpanData.TimedEvents<MessageEvent> messageEvents, SpanData.Links links, Integer childSpanCount, Status status, Timestamp endTimestamp) (package private)
AutoValue_SpanData_TimedEvent
(Timestamp timestamp, T event)
SpanData.create(SpanContext, SpanId, Boolean, String, Kind, Timestamp, Attributes, TimedEvents, TimedEvents, Links, Integer, Status, Timestamp)
.