Class: Google::Apis::SearchconsoleV1::SearchAnalyticsQueryResponse

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

Overview

A list of rows, one per result, grouped by key. Metrics in each row are aggregated for all data grouped by that key either by page or property, as specified by the aggregation type parameter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SearchAnalyticsQueryResponse

Returns a new instance of SearchAnalyticsQueryResponse.



794
795
796
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 794

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

Instance Attribute Details

#response_aggregation_typeString

How the results were aggregated. Corresponds to the JSON property responseAggregationType

Returns:

  • (String)


787
788
789
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 787

def response_aggregation_type
  @response_aggregation_type
end

#rowsArray<Google::Apis::SearchconsoleV1::ApiDataRow>

A list of rows grouped by the key values in the order given in the query. Corresponds to the JSON property rows



792
793
794
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 792

def rows
  @rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



799
800
801
802
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 799

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