Struct google_logging2_beta1::BucketOptions [−][src]
pub struct BucketOptions { pub exponential_buckets: Option<Exponential>, pub linear_buckets: Option<Linear>, pub explicit_buckets: Option<Explicit>, }
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
exponential_buckets: Option<Exponential>
The exponential buckets.
linear_buckets: Option<Linear>
The linear bucket.
explicit_buckets: Option<Explicit>
The explicit buckets.
Trait Implementations
impl Default for BucketOptions
[src]
impl Default for BucketOptions
fn default() -> BucketOptions
[src]
fn default() -> BucketOptions
Returns the "default value" for a type. Read more
impl Clone for BucketOptions
[src]
impl Clone for BucketOptions
fn clone(&self) -> BucketOptions
[src]
fn clone(&self) -> BucketOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for BucketOptions
[src]
impl Debug for BucketOptions
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for BucketOptions
[src]
impl Part for BucketOptions
Auto Trait Implementations
impl Send for BucketOptions
impl Send for BucketOptions
impl Sync for BucketOptions
impl Sync for BucketOptions