Class: Google::Apis::AnalyticsreportingV4::ReportData

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

Overview

The data part of the report.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ReportData

Returns a new instance of ReportData



1118
1119
1120
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1118

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

Instance Attribute Details

#data_last_refreshedString

The last time the data in the report was refreshed. All the hits received before this timestamp are included in the calculation of the report. Corresponds to the JSON property dataLastRefreshed

Returns:

  • (String)


1109
1110
1111
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1109

def data_last_refreshed
  @data_last_refreshed
end

#is_data_goldenBoolean Also known as: is_data_golden?

Indicates if response to this request is golden or not. Data is golden when the exact same request will not produce any new results if asked at a later point in time. Corresponds to the JSON property isDataGolden

Returns:

  • (Boolean)


1102
1103
1104
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1102

def is_data_golden
  @is_data_golden
end

#maximumsArray<Google::Apis::AnalyticsreportingV4::DateRangeValues>

Minimum and maximum values seen over all matching rows. These are both empty when hideValueRanges in the request is false, or when rowCount is zero. Corresponds to the JSON property maximums



1116
1117
1118
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1116

def maximums
  @maximums
end

#minimumsArray<Google::Apis::AnalyticsreportingV4::DateRangeValues>

Minimum and maximum values seen over all matching rows. These are both empty when hideValueRanges in the request is false, or when rowCount is zero. Corresponds to the JSON property minimums



1063
1064
1065
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1063

def minimums
  @minimums
end

#row_countFixnum

Total number of matching rows for this query. Corresponds to the JSON property rowCount

Returns:

  • (Fixnum)


1090
1091
1092
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1090

def row_count
  @row_count
end

#rowsArray<Google::Apis::AnalyticsreportingV4::ReportRow>

There's one ReportRow for every unique combination of dimensions. Corresponds to the JSON property rows



1095
1096
1097
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1095

def rows
  @rows
end

#samples_read_countsArray<Fixnum>

If the results are sampled, this returns the total number of samples read, one entry per date range. If the results are not sampled this field will not be defined. See developer guide for details. Corresponds to the JSON property samplesReadCounts

Returns:

  • (Array<Fixnum>)


1085
1086
1087
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1085

def samples_read_counts
  @samples_read_counts
end

#sampling_space_sizesArray<Fixnum>

If the results are sampled, this returns the total number of samples present, one entry per date range. If the results are not sampled this field will not be defined. See developer guide for details. Corresponds to the JSON property samplingSpaceSizes

Returns:

  • (Array<Fixnum>)


1056
1057
1058
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1056

def sampling_space_sizes
  @sampling_space_sizes
end

#totalsArray<Google::Apis::AnalyticsreportingV4::DateRangeValues>

For each requested date range, for the set of all rows that match the query, every requested value format gets a total. The total for a value format is computed by first totaling the metrics mentioned in the value format and then evaluating the value format as a scalar expression. E.g., The "totals" for 3 / (ga:sessions + 2) we compute 3 / ((sum of all relevant ga:sessions) + 2). Totals are computed before pagination. Corresponds to the JSON property totals



1075
1076
1077
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1075

def totals
  @totals
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1123

def update!(**args)
  @sampling_space_sizes = args[:sampling_space_sizes] if args.key?(:sampling_space_sizes)
  @minimums = args[:minimums] if args.key?(:minimums)
  @totals = args[:totals] if args.key?(:totals)
  @samples_read_counts = args[:samples_read_counts] if args.key?(:samples_read_counts)
  @row_count = args[:row_count] if args.key?(:row_count)
  @rows = args[:rows] if args.key?(:rows)
  @is_data_golden = args[:is_data_golden] if args.key?(:is_data_golden)
  @data_last_refreshed = args[:data_last_refreshed] if args.key?(:data_last_refreshed)
  @maximums = args[:maximums] if args.key?(:maximums)
end