Uses of Class
io.opencensus.common.Timestamp
-
Packages that use Timestamp Package Description io.opencensus.common Common API between different packages in this artifact.io.opencensus.contrib.zpages io.opencensus.implcore.common io.opencensus.implcore.internal io.opencensus.implcore.metrics io.opencensus.implcore.stats io.opencensus.internal Interfaces and implementations that are internal to OpenCensus.io.opencensus.metrics.data This package describes common data models in Metrics that are shared across multiple packages.io.opencensus.metrics.export io.opencensus.stats API for stats recording.io.opencensus.testing.common io.opencensus.trace API for distributed tracing.io.opencensus.trace.export -
-
Uses of Timestamp in io.opencensus.common
Subclasses of Timestamp in io.opencensus.common Modifier and Type Class Description (package private) class
AutoValue_Timestamp
Methods in io.opencensus.common that return Timestamp Modifier and Type Method Description Timestamp
Timestamp. addDuration(Duration duration)
Returns aTimestamp
calculated as thisTimestamp
plus someDuration
.Timestamp
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 Modifier and Type Method Description int
Timestamp. compareTo(Timestamp otherTimestamp)
Compares thisTimestamp
to the specifiedTimestamp
.Duration
Timestamp. subtractTimestamp(Timestamp timestamp)
Returns aDuration
calculated as:this - timestamp
. -
Uses of Timestamp in io.opencensus.contrib.zpages
Methods in io.opencensus.contrib.zpages with parameters of type Timestamp Modifier and Type Method Description private static java.util.Date
StatszZPageHandler. toDate(Timestamp timestamp)
-
Uses of Timestamp in io.opencensus.implcore.common
Methods in io.opencensus.implcore.common that return Timestamp Modifier and Type Method Description Timestamp
MillisClock. now()
-
Uses of Timestamp in io.opencensus.implcore.internal
Fields in io.opencensus.implcore.internal declared as Timestamp Modifier and Type Field Description private Timestamp
TimestampConverter. timestamp
Methods in io.opencensus.implcore.internal that return Timestamp Modifier and Type Method Description Timestamp
TimestampConverter. convertNanoTime(long nanoTime)
Converts ananoTime
value toTimestamp
.Constructors in io.opencensus.implcore.internal with parameters of type Timestamp Constructor Description TimestampConverter(Timestamp timestamp, long nanoTime)
-
Uses of Timestamp in io.opencensus.implcore.metrics
Fields in io.opencensus.implcore.metrics declared as Timestamp Modifier and Type Field Description private Timestamp
DerivedDoubleCumulativeImpl.PointWithFunction. startTime
private Timestamp
DerivedDoubleCumulativeImpl. startTime
private Timestamp
DerivedLongCumulativeImpl.PointWithFunction. startTime
private Timestamp
DerivedLongCumulativeImpl. startTime
private Timestamp
DoubleCumulativeImpl.PointImpl. startTime
private Timestamp
DoubleCumulativeImpl. startTime
private Timestamp
LongCumulativeImpl.PointImpl. startTime
private Timestamp
LongCumulativeImpl. startTime
Constructors in io.opencensus.implcore.metrics with parameters of type Timestamp Constructor Description DerivedDoubleCumulativeImpl(java.lang.String name, java.lang.String description, java.lang.String unit, java.util.List<LabelKey> labelKeys, java.util.Map<LabelKey,LabelValue> constantLabels, Timestamp startTime)
DerivedLongCumulativeImpl(java.lang.String name, java.lang.String description, java.lang.String unit, java.util.List<LabelKey> labelKeys, java.util.Map<LabelKey,LabelValue> constantLabels, Timestamp startTime)
DoubleCumulativeImpl(java.lang.String name, java.lang.String description, java.lang.String unit, java.util.List<LabelKey> labelKeys, java.util.Map<LabelKey,LabelValue> constantLabels, Timestamp startTime)
LongCumulativeImpl(java.lang.String name, java.lang.String description, java.lang.String unit, java.util.List<LabelKey> labelKeys, java.util.Map<LabelKey,LabelValue> constantLabels, Timestamp startTime)
PointImpl(java.util.List<LabelValue> labelValues, Timestamp startTime)
PointImpl(java.util.List<LabelValue> labelValues, Timestamp startTime)
PointWithFunction(java.util.List<LabelValue> labelValues, T obj, ToDoubleFunction<T> function, Timestamp startTime)
PointWithFunction(java.util.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 Timestamp Modifier and Type Field Description private Timestamp
IntervalBucket. start
private Timestamp
MutableViewData.CreateCumulative. start
private Timestamp
MutableViewData.CreateInterval. start
private Timestamp
MutableViewData.CumulativeMutableViewData. start
(package private) static Timestamp
MutableViewData. ZERO_TIMESTAMP
Methods in io.opencensus.implcore.stats that return Timestamp Modifier and Type Method Description (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 Timestamp Modifier and Type Method Description (package private) abstract void
MutableAggregation. add(double value, java.util.Map<java.lang.String,AttachmentValue> attachments, Timestamp timestamp)
Put a new value into the MutableAggregation.(package private) void
MutableAggregation.MutableCount. add(double value, java.util.Map<java.lang.String,AttachmentValue> attachments, Timestamp timestamp)
(package private) void
MutableAggregation.MutableDistribution. add(double value, java.util.Map<java.lang.String,AttachmentValue> attachments, Timestamp timestamp)
(package private) void
MutableAggregation.MutableLastValueDouble. add(double value, java.util.Map<java.lang.String,AttachmentValue> attachments, Timestamp timestamp)
(package private) void
MutableAggregation.MutableMean. add(double value, java.util.Map<java.lang.String,AttachmentValue> attachments, Timestamp timestamp)
(package private) void
MutableAggregation.MutableSumDouble. add(double value, java.util.Map<java.lang.String,AttachmentValue> attachments, Timestamp timestamp)
private java.util.Map<java.util.List<TagValue>,AggregationData>
MutableViewData.IntervalMutableViewData. combineBucketsAndGetAggregationMap(Timestamp now)
(package private) static MutableViewData
MutableViewData. create(View view, Timestamp start)
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(java.util.ArrayDeque<IntervalBucket> buckets, com.google.common.collect.Multimap<java.util.List<TagValue>,MutableAggregation> multimap, Aggregation aggregation, Measure measure, Timestamp now)
(package private) void
IntervalBucket. record(java.util.List<TagValue> tagValues, double value, java.util.Map<java.lang.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, java.util.Map<java.lang.String,AttachmentValue> attachments)
(package private) void
MutableViewData.IntervalMutableViewData. record(TagContext context, double value, Timestamp timestamp, java.util.Map<java.lang.String,AttachmentValue> attachments)
(package private) abstract void
MutableViewData. record(TagContext context, double value, Timestamp timestamp, java.util.Map<java.lang.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
MutableAggregation.MutableCount. toPoint(Timestamp timestamp)
(package private) Point
MutableAggregation.MutableDistribution. toPoint(Timestamp timestamp)
(package private) Point
MutableAggregation.MutableLastValueDouble. toPoint(Timestamp timestamp)
(package private) Point
MutableAggregation.MutableLastValueLong. toPoint(Timestamp timestamp)
(package private) Point
MutableAggregation.MutableMean. toPoint(Timestamp timestamp)
(package private) Point
MutableAggregation.MutableSumDouble. toPoint(Timestamp timestamp)
(package private) Point
MutableAggregation.MutableSumLong. toPoint(Timestamp timestamp)
(package private) abstract Point
MutableAggregation. toPoint(Timestamp timestamp)
(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 Timestamp Constructor Description CreateCumulative(View view, Timestamp start)
CreateInterval(View view, Timestamp start)
CumulativeMutableViewData(View view, Timestamp start)
IntervalBucket(Timestamp start, Duration duration, Aggregation aggregation, Measure measure)
IntervalMutableViewData(View view, Timestamp start)
-
Uses of Timestamp in io.opencensus.internal
Fields in io.opencensus.internal declared as Timestamp Modifier and Type Field Description private static Timestamp
ZeroTimeClock. ZERO_TIMESTAMP
Methods in io.opencensus.internal that return Timestamp Modifier and Type Method Description Timestamp
ZeroTimeClock. now()
-
Uses of Timestamp in io.opencensus.metrics.data
Fields in io.opencensus.metrics.data declared as Timestamp Modifier and Type Field Description private Timestamp
AutoValue_Exemplar. timestamp
Methods in io.opencensus.metrics.data that return Timestamp Modifier and Type Method Description Timestamp
AutoValue_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 Timestamp Modifier and Type Method Description static Exemplar
Exemplar. create(double value, Timestamp timestamp, java.util.Map<java.lang.String,AttachmentValue> attachments)
Creates anExemplar
.Constructors in io.opencensus.metrics.data with parameters of type Timestamp Constructor Description AutoValue_Exemplar(double value, Timestamp timestamp, java.util.Map<java.lang.String,AttachmentValue> attachments)
-
Uses of Timestamp in io.opencensus.metrics.export
Fields in io.opencensus.metrics.export declared as Timestamp Modifier and Type Field Description private Timestamp
AutoValue_TimeSeries. startTimestamp
private Timestamp
AutoValue_Point. timestamp
Methods in io.opencensus.metrics.export that return Timestamp Modifier and Type Method Description Timestamp
AutoValue_TimeSeries. getStartTimestamp()
abstract Timestamp
TimeSeries. getStartTimestamp()
Returns the startTimestamp
of thisTimeSeries
if thePoint
s are cumulative, ornull
if thePoint
s are gauge.Timestamp
AutoValue_Point. getTimestamp()
abstract Timestamp
Point. getTimestamp()
Methods in io.opencensus.metrics.export with parameters of type Timestamp Modifier and Type Method Description static Point
Point. create(Value value, Timestamp timestamp)
Creates aPoint
.static TimeSeries
TimeSeries. create(java.util.List<LabelValue> labelValues, java.util.List<Point> points, Timestamp startTimestamp)
Creates aTimeSeries
.private static TimeSeries
TimeSeries. createInternal(java.util.List<LabelValue> labelValues, java.util.List<Point> points, Timestamp startTimestamp)
Creates aTimeSeries
.static TimeSeries
TimeSeries. createWithOnePoint(java.util.List<LabelValue> labelValues, Point point, Timestamp startTimestamp)
Creates aTimeSeries
.Constructors in io.opencensus.metrics.export with parameters of type Timestamp Constructor Description AutoValue_Point(Value value, Timestamp timestamp)
AutoValue_TimeSeries(java.util.List<LabelValue> labelValues, java.util.List<Point> points, Timestamp startTimestamp)
-
Uses of Timestamp in io.opencensus.stats
Fields in io.opencensus.stats declared as Timestamp Modifier and Type Field Description private Timestamp
AutoValue_ViewData_AggregationWindowData_CumulativeData. end
Deprecated.private Timestamp
AutoValue_ViewData_AggregationWindowData_IntervalData. end
Deprecated.private Timestamp
AutoValue_ViewData. end
private Timestamp
AutoValue_ViewData_AggregationWindowData_CumulativeData. start
Deprecated.private Timestamp
AutoValue_ViewData. start
private static Timestamp
NoopStats.NoopViewManager. ZERO_TIMESTAMP
Methods in io.opencensus.stats that return Timestamp Modifier and Type Method Description Timestamp
AutoValue_ViewData_AggregationWindowData_CumulativeData. getEnd()
Deprecated.Timestamp
AutoValue_ViewData_AggregationWindowData_IntervalData. getEnd()
Deprecated.Timestamp
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
.Timestamp
AutoValue_ViewData_AggregationWindowData_CumulativeData. getStart()
Deprecated.Timestamp
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 Timestamp Modifier and Type Method Description static ViewData.AggregationWindowData.CumulativeData
ViewData.AggregationWindowData.CumulativeData. create(Timestamp start, Timestamp end)
Deprecated.Constructs a newViewData.AggregationWindowData.CumulativeData
.static ViewData.AggregationWindowData.IntervalData
ViewData.AggregationWindowData.IntervalData. create(Timestamp end)
Deprecated.Constructs a newViewData.AggregationWindowData.IntervalData
.static ViewData
ViewData. create(View view, java.util.Map<? extends java.util.List<TagValue>,? extends AggregationData> map, Timestamp start, Timestamp end)
Constructs a newViewData
.private static ViewData
ViewData. createInternal(View view, java.util.Map<java.util.List<TagValue>,AggregationData> aggregationMap, ViewData.AggregationWindowData window, Timestamp start, Timestamp end)
Constructors in io.opencensus.stats with parameters of type Timestamp Constructor Description AutoValue_ViewData(View view, java.util.Map<java.util.List<TagValue>,AggregationData> aggregationMap, ViewData.AggregationWindowData windowData, Timestamp start, Timestamp end)
AutoValue_ViewData_AggregationWindowData_CumulativeData(Timestamp start, Timestamp end)
Deprecated.AutoValue_ViewData_AggregationWindowData_IntervalData(Timestamp end)
Deprecated. -
Uses of Timestamp in io.opencensus.testing.common
Fields in io.opencensus.testing.common declared as Timestamp Modifier and Type Field Description private Timestamp
TestClock. currentTime
Methods in io.opencensus.testing.common that return Timestamp Modifier and Type Method Description Timestamp
TestClock. now()
private static Timestamp
TestClock. validateNanos(Timestamp time)
Methods in io.opencensus.testing.common with parameters of type Timestamp Modifier and Type Method Description static TestClock
TestClock. create(Timestamp time)
Creates a clock with the given time.private static long
TestClock. getNanos(Timestamp time)
void
TestClock. setTime(Timestamp time)
Sets the time.private static Timestamp
TestClock. validateNanos(Timestamp time)
-
Uses of Timestamp in io.opencensus.trace
Fields in io.opencensus.trace declared as Timestamp Modifier and Type Field Description private Timestamp
AutoValue_NetworkEvent.Builder. kernelTimestamp
private Timestamp
AutoValue_NetworkEvent. kernelTimestamp
Deprecated.Methods in io.opencensus.trace that return Timestamp Modifier and Type Method Description Timestamp
AutoValue_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 Timestamp Modifier and Type Method Description NetworkEvent.Builder
AutoValue_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 Timestamp Constructor Description 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 Timestamp Modifier and Type Field Description private Timestamp
AutoValue_SpanData. endTimestamp
private Timestamp
AutoValue_SpanData. startTimestamp
private Timestamp
AutoValue_SpanData_TimedEvent. timestamp
Methods in io.opencensus.trace.export that return Timestamp Modifier and Type Method Description Timestamp
AutoValue_SpanData. getEndTimestamp()
abstract Timestamp
SpanData. getEndTimestamp()
Returns the endTimestamp
ornull
if theSpan
is still active.Timestamp
AutoValue_SpanData. getStartTimestamp()
abstract Timestamp
SpanData. getStartTimestamp()
Returns the startTimestamp
of thisSpan
.Timestamp
AutoValue_SpanData_TimedEvent. getTimestamp()
abstract Timestamp
SpanData.TimedEvent. getTimestamp()
Returns theTimestamp
of this event.Methods in io.opencensus.trace.export with parameters of type Timestamp Modifier and Type Method Description static SpanData
SpanData. create(SpanContext context, SpanId parentSpanId, java.lang.Boolean hasRemoteParent, java.lang.String name, Timestamp startTimestamp, SpanData.Attributes attributes, SpanData.TimedEvents<Annotation> annotations, SpanData.TimedEvents<? extends BaseMessageEvent> messageOrNetworkEvents, SpanData.Links links, java.lang.Integer childSpanCount, Status status, Timestamp endTimestamp)
static SpanData
SpanData. create(SpanContext context, SpanId parentSpanId, java.lang.Boolean hasRemoteParent, java.lang.String name, Span.Kind kind, Timestamp startTimestamp, SpanData.Attributes attributes, SpanData.TimedEvents<Annotation> annotations, SpanData.TimedEvents<? extends BaseMessageEvent> messageOrNetworkEvents, SpanData.Links links, java.lang.Integer childSpanCount, Status status, Timestamp endTimestamp)
Returns a new immutableSpanData
.static <T> SpanData.TimedEvent<T>
SpanData.TimedEvent. create(Timestamp timestamp, T event)
Returns a new immutableTimedEvent<T>
.Constructors in io.opencensus.trace.export with parameters of type Timestamp Constructor Description AutoValue_SpanData(SpanContext context, SpanId parentSpanId, java.lang.Boolean hasRemoteParent, java.lang.String name, Span.Kind kind, Timestamp startTimestamp, SpanData.Attributes attributes, SpanData.TimedEvents<Annotation> annotations, SpanData.TimedEvents<MessageEvent> messageEvents, SpanData.Links links, java.lang.Integer childSpanCount, Status status, Timestamp endTimestamp)
AutoValue_SpanData_TimedEvent(Timestamp timestamp, T event)
-