Struct google_logging2::api::BucketOptions [−][src]
pub struct BucketOptions {
pub explicit_buckets: Option<Explicit>,
pub exponential_buckets: Option<Exponential>,
pub linear_buckets: Option<Linear>,
}Expand description
BucketOptions describes the bucket boundaries used to create a histogram for the distribution. The buckets can be in a linear sequence, an exponential sequence, or each bucket can be specified explicitly. BucketOptions does not include the number of values in each bucket.A bucket has an inclusive lower bound and exclusive upper bound for the values that are counted for that bucket. The upper bound of a bucket must be strictly greater than the lower bound. The sequence of N buckets for a distribution consists of an underflow bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an overflow bucket (number N - 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets span the whole range of finite values: lower bound of the underflow bucket is -infinity and the upper bound of the overflow bucket is +infinity. The finite buckets are so-called because both bounds are finite.
This type is not used in any activity, and only used as part of another schema.
Fields
explicit_buckets: Option<Explicit>The explicit buckets.
exponential_buckets: Option<Exponential>The exponential buckets.
linear_buckets: Option<Linear>The linear bucket.
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for BucketOptions
impl Send for BucketOptions
impl Sync for BucketOptions
impl Unpin for BucketOptions
impl UnwindSafe for BucketOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more