Package io.opencensus.trace.export
Enum SampledSpanStore.LatencyBucketBoundaries
- java.lang.Object
-
- java.lang.Enum<SampledSpanStore.LatencyBucketBoundaries>
-
- io.opencensus.trace.export.SampledSpanStore.LatencyBucketBoundaries
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SampledSpanStore.LatencyBucketBoundaries>
- Enclosing class:
- SampledSpanStore
public static enum SampledSpanStore.LatencyBucketBoundaries extends java.lang.Enum<SampledSpanStore.LatencyBucketBoundaries>
The latency buckets boundaries. Samples based on latency for successful spans (the status of the span has a canonical code equal toStatus.CanonicalCode.OK
) are collected in one of these latency buckets.- Since:
- 0.5
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MICROSx10_MICROSx100
Stores finished successful requests of duration within the interval [10us, 100us).MICROSx100_MILLIx1
Stores finished successful requests of duration within the interval [100us, 1ms).MILLIx1_MILLIx10
Stores finished successful requests of duration within the interval [1ms, 10ms).MILLIx10_MILLIx100
Stores finished successful requests of duration within the interval [10ms, 100ms).MILLIx100_SECONDx1
Stores finished successful requests of duration within the interval [100ms, 1sec).SECONDx1_SECONDx10
Stores finished successful requests of duration within the interval [1sec, 10sec).SECONDx10_SECONDx100
Stores finished successful requests of duration within the interval [10sec, 100sec).SECONDx100_MAX
Stores finished successful requests of duration >= 100sec.ZERO_MICROSx10
Stores finished successful requests of duration within the interval [0, 10us).
-
Field Summary
Fields Modifier and Type Field Description private long
latencyLowerNs
private long
latencyUpperNs
-
Constructor Summary
Constructors Modifier Constructor Description private
LatencyBucketBoundaries(long latencyLowerNs, long latencyUpperNs)
Constructs aLatencyBucketBoundaries
with the given boundaries and label.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getLatencyLowerNs()
Returns the latency lower bound of the bucket.long
getLatencyUpperNs()
Returns the latency upper bound of the bucket.static SampledSpanStore.LatencyBucketBoundaries
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SampledSpanStore.LatencyBucketBoundaries[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ZERO_MICROSx10
public static final SampledSpanStore.LatencyBucketBoundaries ZERO_MICROSx10
Stores finished successful requests of duration within the interval [0, 10us).- Since:
- 0.5
-
MICROSx10_MICROSx100
public static final SampledSpanStore.LatencyBucketBoundaries MICROSx10_MICROSx100
Stores finished successful requests of duration within the interval [10us, 100us).- Since:
- 0.5
-
MICROSx100_MILLIx1
public static final SampledSpanStore.LatencyBucketBoundaries MICROSx100_MILLIx1
Stores finished successful requests of duration within the interval [100us, 1ms).- Since:
- 0.5
-
MILLIx1_MILLIx10
public static final SampledSpanStore.LatencyBucketBoundaries MILLIx1_MILLIx10
Stores finished successful requests of duration within the interval [1ms, 10ms).- Since:
- 0.5
-
MILLIx10_MILLIx100
public static final SampledSpanStore.LatencyBucketBoundaries MILLIx10_MILLIx100
Stores finished successful requests of duration within the interval [10ms, 100ms).- Since:
- 0.5
-
MILLIx100_SECONDx1
public static final SampledSpanStore.LatencyBucketBoundaries MILLIx100_SECONDx1
Stores finished successful requests of duration within the interval [100ms, 1sec).- Since:
- 0.5
-
SECONDx1_SECONDx10
public static final SampledSpanStore.LatencyBucketBoundaries SECONDx1_SECONDx10
Stores finished successful requests of duration within the interval [1sec, 10sec).- Since:
- 0.5
-
SECONDx10_SECONDx100
public static final SampledSpanStore.LatencyBucketBoundaries SECONDx10_SECONDx100
Stores finished successful requests of duration within the interval [10sec, 100sec).- Since:
- 0.5
-
SECONDx100_MAX
public static final SampledSpanStore.LatencyBucketBoundaries SECONDx100_MAX
Stores finished successful requests of duration >= 100sec.- Since:
- 0.5
-
-
Constructor Detail
-
LatencyBucketBoundaries
private LatencyBucketBoundaries(long latencyLowerNs, long latencyUpperNs)
Constructs aLatencyBucketBoundaries
with the given boundaries and label.- Parameters:
latencyLowerNs
- the latency lower bound of the bucket.latencyUpperNs
- the latency upper bound of the bucket.
-
-
Method Detail
-
values
public static SampledSpanStore.LatencyBucketBoundaries[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SampledSpanStore.LatencyBucketBoundaries c : SampledSpanStore.LatencyBucketBoundaries.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SampledSpanStore.LatencyBucketBoundaries valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getLatencyLowerNs
public long getLatencyLowerNs()
Returns the latency lower bound of the bucket.- Returns:
- the latency lower bound of the bucket.
- Since:
- 0.5
-
getLatencyUpperNs
public long getLatencyUpperNs()
Returns the latency upper bound of the bucket.- Returns:
- the latency upper bound of the bucket.
- Since:
- 0.5
-
-