Class: Google::Apis::AnalyticsdataV1beta::SamplingMetadata

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

Overview

If this report results is sampled, this describes the percentage of events used in this report. Sampling is the practice of analyzing a subset of all data in order to uncover the meaningful information in the larger data set.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SamplingMetadata

Returns a new instance of SamplingMetadata.



2556
2557
2558
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2556

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

Instance Attribute Details

#samples_read_countFixnum

The total number of events read in this sampled report for a date range. This is the size of the subset this property's data that was analyzed in this report. Corresponds to the JSON property samplesReadCount

Returns:

  • (Fixnum)


2545
2546
2547
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2545

def samples_read_count
  @samples_read_count
end

#sampling_space_sizeFixnum

The total number of events present in this property's data that could have been analyzed in this report for a date range. Sampling uncovers the meaningful information about the larger data set, and this is the size of the larger data set. To calculate the percentage of available data that was used in this report, compute samplesReadCount/samplingSpaceSize. Corresponds to the JSON property samplingSpaceSize

Returns:

  • (Fixnum)


2554
2555
2556
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2554

def sampling_space_size
  @sampling_space_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2561
2562
2563
2564
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2561

def update!(**args)
  @samples_read_count = args[:samples_read_count] if args.key?(:samples_read_count)
  @sampling_space_size = args[:sampling_space_size] if args.key?(:sampling_space_size)
end