Class: OpenCensus::Stats::Aggregation::Distribution

Inherits:
Object
  • Object
show all
Defined in:
lib/opencensus/stats/aggregation/distribution.rb

Overview

Distribution aggregation type

Defined Under Namespace

Classes: InvalidBucketsError

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bucketsArray<Integer>, Array<Float> (readonly)

Returns Bucket boundries.

Returns:

  • (Array<Integer>, Array<Float>)

    Bucket boundries.



13
14
15
# File 'lib/opencensus/stats/aggregation/distribution.rb', line 13

def buckets
  @buckets
end

Instance Method Details

#create_aggregation_dataAggregationData::Distribution

Create new aggregation data container to store distribution values. values.



35
36
37
# File 'lib/opencensus/stats/aggregation/distribution.rb', line 35

def create_aggregation_data
  AggregationData::Distribution.new @buckets
end