Enum googapis::google::api::servicecontrol::v1::distribution::BucketOption [−][src]
pub enum BucketOption {
LinearBuckets(LinearBuckets),
ExponentialBuckets(ExponentialBuckets),
ExplicitBuckets(ExplicitBuckets),
}
Expand description
Defines the buckets in the histogram. bucket_option
and bucket_counts
must be both set, or both unset.
Buckets are numbered in the range of [0, N], with a total of N+1 buckets.
There must be at least two buckets (a single-bucket histogram gives
no information that isn’t already provided by count
).
The first bucket is the underflow bucket which has a lower bound of -inf. The last bucket is the overflow bucket which has an upper bound of +inf. All other buckets (if any) are called “finite” buckets because they have finite lower and upper bounds. As described below, there are three ways to define the finite buckets.
(1) Buckets with constant width. (2) Buckets with exponentially growing widths. (3) Buckets with arbitrary user-provided widths.
In all cases, the buckets cover the entire real number line (-inf, +inf). Bucket upper bounds are exclusive and lower bounds are inclusive. The upper bound of the underflow bucket is equal to the lower bound of the smallest finite bucket; the lower bound of the overflow bucket is equal to the upper bound of the largest finite bucket.
Variants
LinearBuckets(LinearBuckets)
Buckets with constant width.
Tuple Fields of LinearBuckets
ExponentialBuckets(ExponentialBuckets)
Buckets with exponentially growing width.
Tuple Fields of ExponentialBuckets
ExplicitBuckets(ExplicitBuckets)
Buckets with arbitrary user-provided width.
Tuple Fields of ExplicitBuckets
Implementations
pub fn merge<B>(
field: &mut Option<BucketOption>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for BucketOption
impl Send for BucketOption
impl Sync for BucketOption
impl Unpin for BucketOption
impl UnwindSafe for BucketOption
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more