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.
2462 2463 2464 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2462 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
2451 2452 2453 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2451 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
2460 2461 2462 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2460 def sampling_space_size @sampling_space_size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2467 2468 2469 2470 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 2467 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 |