Class: Google::Apis::AnalyticsdataV1beta::SamplingMetadata
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsdataV1beta::SamplingMetadata
- 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
-
#samples_read_count ⇒ Fixnum
The total number of events read in this sampled report for a date range.
-
#sampling_space_size ⇒ Fixnum
The total number of events present in this property's data that could have been analyzed in this report for a date range.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SamplingMetadata
constructor
A new instance of SamplingMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SamplingMetadata
Returns a new instance of SamplingMetadata.
2560 2561 2562 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2560 def initialize(**args) update!(**args) end |
Instance Attribute Details
#samples_read_count ⇒ Fixnum
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
2549 2550 2551 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2549 def samples_read_count @samples_read_count end |
#sampling_space_size ⇒ Fixnum
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
2558 2559 2560 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2558 def sampling_space_size @sampling_space_size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2565 2566 2567 2568 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2565 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 |