Class: Google::Apis::AnalyticsreportingV4::SearchUserActivityResponse
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsreportingV4::SearchUserActivityResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsreporting_v4/classes.rb,
lib/google/apis/analyticsreporting_v4/representations.rb,
lib/google/apis/analyticsreporting_v4/representations.rb more...
Overview
The response from userActivity:get
call.
Instance Attribute Summary collapse
-
#next_page_token ⇒ String
This token should be passed to SearchUserActivityRequest to retrieve the next page.
-
#sample_rate ⇒ Float
This field represents the sampling rate for the given request and is a number between 0.0 to 1.0.
-
#sessions ⇒ Array<Google::Apis::AnalyticsreportingV4::UserActivitySession>
Each record represents a session (device details, duration, etc).
-
#total_rows ⇒ Fixnum
Total rows returned by this query (across different pages).
Instance Method Summary collapse
-
#initialize(**args) ⇒ SearchUserActivityResponse
constructor
A new instance of SearchUserActivityResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SearchUserActivityResponse
Returns a new instance of SearchUserActivityResponse.
1613 1614 1615 |
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1613 def initialize(**args) update!(**args) end |
Instance Attribute Details
#next_page_token ⇒ String
This token should be passed to SearchUserActivityRequest to retrieve the next page.
Corresponds to the JSON property nextPageToken
1593 1594 1595 |
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1593 def next_page_token @next_page_token end |
#sample_rate ⇒ Float
This field represents the sampling rate for the given request and is a number between 0.0 to 1.0. See
developer guide for
details.
Corresponds to the JSON property sampleRate
1601 1602 1603 |
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1601 def sample_rate @sample_rate end |
#sessions ⇒ Array<Google::Apis::AnalyticsreportingV4::UserActivitySession>
Each record represents a session (device details, duration, etc).
Corresponds to the JSON property sessions
1606 1607 1608 |
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1606 def sessions @sessions end |
#total_rows ⇒ Fixnum
Total rows returned by this query (across different pages).
Corresponds to the JSON property totalRows
1611 1612 1613 |
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1611 def total_rows @total_rows end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1618 1619 1620 1621 1622 1623 |
# File 'lib/google/apis/analyticsreporting_v4/classes.rb', line 1618 def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @sample_rate = args[:sample_rate] if args.key?(:sample_rate) @sessions = args[:sessions] if args.key?(:sessions) @total_rows = args[:total_rows] if args.key?(:total_rows) end |