Reference documentation and code samples for the Service Control API V1 API class Google::Cloud::ServiceControl::V1::Distribution.
Distribution represents a frequency distribution of double-valued sample points. It contains the size of the population of sample points plus additional optional information:
- the arithmetic mean of the samples
- the minimum and maximum of the samples
- the sum-squared-deviation of the samples, used to compute variance
- a histogram of the values of the sample points
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#bucket_counts
def bucket_counts() -> ::Array<::Integer>- (::Array<::Integer>) — The number of samples in each histogram bucket.
bucket_countsare optional. If present, they must sum to thecountvalue.The buckets are defined below in
bucket_option. There are N buckets.bucket_counts[0]is the number of samples in the underflow bucket.bucket_counts[1]tobucket_counts[N-1]are the numbers of samples in each of the finite buckets. Andbucket_counts[N] is the number of samples in the overflow bucket. See the comments ofbucket_option` below for more details.Any suffix of trailing zeros may be omitted.
#bucket_counts=
def bucket_counts=(value) -> ::Array<::Integer>- value (::Array<::Integer>) — The number of samples in each histogram bucket.
bucket_countsare optional. If present, they must sum to thecountvalue.The buckets are defined below in
bucket_option. There are N buckets.bucket_counts[0]is the number of samples in the underflow bucket.bucket_counts[1]tobucket_counts[N-1]are the numbers of samples in each of the finite buckets. Andbucket_counts[N] is the number of samples in the overflow bucket. See the comments ofbucket_option` below for more details.Any suffix of trailing zeros may be omitted.
- (::Array<::Integer>) — The number of samples in each histogram bucket.
bucket_countsare optional. If present, they must sum to thecountvalue.The buckets are defined below in
bucket_option. There are N buckets.bucket_counts[0]is the number of samples in the underflow bucket.bucket_counts[1]tobucket_counts[N-1]are the numbers of samples in each of the finite buckets. Andbucket_counts[N] is the number of samples in the overflow bucket. See the comments ofbucket_option` below for more details.Any suffix of trailing zeros may be omitted.
#count
def count() -> ::Integer- (::Integer) — The total number of samples in the distribution. Must be >= 0.
#count=
def count=(value) -> ::Integer- value (::Integer) — The total number of samples in the distribution. Must be >= 0.
- (::Integer) — The total number of samples in the distribution. Must be >= 0.
#exemplars
def exemplars() -> ::Array<::Google::Api::Distribution::Exemplar>- (::Array<::Google::Api::Distribution::Exemplar>) — Example points. Must be in increasing order of
valuefield.
#exemplars=
def exemplars=(value) -> ::Array<::Google::Api::Distribution::Exemplar>- value (::Array<::Google::Api::Distribution::Exemplar>) — Example points. Must be in increasing order of
valuefield.
- (::Array<::Google::Api::Distribution::Exemplar>) — Example points. Must be in increasing order of
valuefield.
#explicit_buckets
def explicit_buckets() -> ::Google::Cloud::ServiceControl::V1::Distribution::ExplicitBuckets- (::Google::Cloud::ServiceControl::V1::Distribution::ExplicitBuckets) — Buckets with arbitrary user-provided width.
Note: The following fields are mutually exclusive:
explicit_buckets,linear_buckets,exponential_buckets. If a field in that set is populated, all other fields in the set will automatically be cleared.
#explicit_buckets=
def explicit_buckets=(value) -> ::Google::Cloud::ServiceControl::V1::Distribution::ExplicitBuckets- value (::Google::Cloud::ServiceControl::V1::Distribution::ExplicitBuckets) — Buckets with arbitrary user-provided width.
Note: The following fields are mutually exclusive:
explicit_buckets,linear_buckets,exponential_buckets. If a field in that set is populated, all other fields in the set will automatically be cleared.
- (::Google::Cloud::ServiceControl::V1::Distribution::ExplicitBuckets) — Buckets with arbitrary user-provided width.
Note: The following fields are mutually exclusive:
explicit_buckets,linear_buckets,exponential_buckets. If a field in that set is populated, all other fields in the set will automatically be cleared.
#exponential_buckets
def exponential_buckets() -> ::Google::Cloud::ServiceControl::V1::Distribution::ExponentialBuckets- (::Google::Cloud::ServiceControl::V1::Distribution::ExponentialBuckets) — Buckets with exponentially growing width.
Note: The following fields are mutually exclusive:
exponential_buckets,linear_buckets,explicit_buckets. If a field in that set is populated, all other fields in the set will automatically be cleared.
#exponential_buckets=
def exponential_buckets=(value) -> ::Google::Cloud::ServiceControl::V1::Distribution::ExponentialBuckets- value (::Google::Cloud::ServiceControl::V1::Distribution::ExponentialBuckets) — Buckets with exponentially growing width.
Note: The following fields are mutually exclusive:
exponential_buckets,linear_buckets,explicit_buckets. If a field in that set is populated, all other fields in the set will automatically be cleared.
- (::Google::Cloud::ServiceControl::V1::Distribution::ExponentialBuckets) — Buckets with exponentially growing width.
Note: The following fields are mutually exclusive:
exponential_buckets,linear_buckets,explicit_buckets. If a field in that set is populated, all other fields in the set will automatically be cleared.
#linear_buckets
def linear_buckets() -> ::Google::Cloud::ServiceControl::V1::Distribution::LinearBuckets- (::Google::Cloud::ServiceControl::V1::Distribution::LinearBuckets) — Buckets with constant width.
Note: The following fields are mutually exclusive:
linear_buckets,exponential_buckets,explicit_buckets. If a field in that set is populated, all other fields in the set will automatically be cleared.
#linear_buckets=
def linear_buckets=(value) -> ::Google::Cloud::ServiceControl::V1::Distribution::LinearBuckets- value (::Google::Cloud::ServiceControl::V1::Distribution::LinearBuckets) — Buckets with constant width.
Note: The following fields are mutually exclusive:
linear_buckets,exponential_buckets,explicit_buckets. If a field in that set is populated, all other fields in the set will automatically be cleared.
- (::Google::Cloud::ServiceControl::V1::Distribution::LinearBuckets) — Buckets with constant width.
Note: The following fields are mutually exclusive:
linear_buckets,exponential_buckets,explicit_buckets. If a field in that set is populated, all other fields in the set will automatically be cleared.
#maximum
def maximum() -> ::Float- (::Float) — The maximum of the population of values. Ignored if
countis zero.
#maximum=
def maximum=(value) -> ::Float- value (::Float) — The maximum of the population of values. Ignored if
countis zero.
- (::Float) — The maximum of the population of values. Ignored if
countis zero.
#mean
def mean() -> ::Float- (::Float) — The arithmetic mean of the samples in the distribution. If
countis zero then this field must be zero.
#mean=
def mean=(value) -> ::Float- value (::Float) — The arithmetic mean of the samples in the distribution. If
countis zero then this field must be zero.
- (::Float) — The arithmetic mean of the samples in the distribution. If
countis zero then this field must be zero.
#minimum
def minimum() -> ::Float- (::Float) — The minimum of the population of values. Ignored if
countis zero.
#minimum=
def minimum=(value) -> ::Float- value (::Float) — The minimum of the population of values. Ignored if
countis zero.
- (::Float) — The minimum of the population of values. Ignored if
countis zero.
#sum_of_squared_deviation
def sum_of_squared_deviation() -> ::Float- (::Float) — The sum of squared deviations from the mean: Sumi=1..count where each x_i is a sample values. If
countis zero then this field must be zero, otherwise validation of the request fails.
#sum_of_squared_deviation=
def sum_of_squared_deviation=(value) -> ::Float- value (::Float) — The sum of squared deviations from the mean: Sumi=1..count where each x_i is a sample values. If
countis zero then this field must be zero, otherwise validation of the request fails.
- (::Float) — The sum of squared deviations from the mean: Sumi=1..count where each x_i is a sample values. If
countis zero then this field must be zero, otherwise validation of the request fails.