Class: Google::Apis::DataflowV1b3::DataflowHistogramValue

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataflow_v1b3/classes.rb,
lib/google/apis/dataflow_v1b3/representations.rb,
lib/google/apis/dataflow_v1b3/representations.rb

Overview

Summary statistics for a population of values. HistogramValue contains a sequence of buckets and gives a count of values that fall into each bucket. Bucket boundares are defined by a formula and bucket widths are either fixed or exponentially increasing.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataflowHistogramValue

Returns a new instance of DataflowHistogramValue.



1029
1030
1031
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1029

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bucket_countsArray<Fixnum>

Optional. The number of values in each bucket of the histogram, as described in bucket_options. bucket_counts should contain N values, where N is the number of buckets specified in bucket_options. If bucket_counts has fewer than N values, the remaining values are assumed to be 0. Corresponds to the JSON property bucketCounts

Returns:

  • (Array<Fixnum>)


1012
1013
1014
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1012

def bucket_counts
  @bucket_counts
end

#bucket_optionsGoogle::Apis::DataflowV1b3::BucketOptions

BucketOptions describes the bucket boundaries used in the histogram. Corresponds to the JSON property bucketOptions



1017
1018
1019
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1017

def bucket_options
  @bucket_options
end

#countFixnum

Number of values recorded in this histogram. Corresponds to the JSON property count

Returns:

  • (Fixnum)


1022
1023
1024
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1022

def count
  @count
end

#outlier_statsGoogle::Apis::DataflowV1b3::OutlierStats

Statistics for the underflow and overflow bucket. Corresponds to the JSON property outlierStats



1027
1028
1029
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1027

def outlier_stats
  @outlier_stats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1034
1035
1036
1037
1038
1039
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 1034

def update!(**args)
  @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
  @bucket_options = args[:bucket_options] if args.key?(:bucket_options)
  @count = args[:count] if args.key?(:count)
  @outlier_stats = args[:outlier_stats] if args.key?(:outlier_stats)
end