Class: Google::Apis::AnalyticsreportingV4::UserActivitySession
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsreportingV4::UserActivitySession
- 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
This represents a user session performed on a specific device at a certain time over a period of time.
Instance Attribute Summary collapse
-
#activities ⇒ Array<Google::Apis::AnalyticsreportingV4::Activity>
Represents a detailed view into each of the activity in this session.
-
#data_source ⇒ String
The data source of a hit.
-
#device_category ⇒ String
The type of device used: "mobile", "tablet" etc.
-
#platform ⇒ String
Platform on which the activity happened: "android", "ios" etc.
-
#session_date ⇒ String
Date of this session in ISO-8601 format.
-
#session_id ⇒ String
Unique ID of the session.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserActivitySession
constructor
A new instance of UserActivitySession.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UserActivitySession
Returns a new instance of UserActivitySession
2098 2099 2100 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 2098 def initialize(**args) update!(**args) end |
Instance Attribute Details
#activities ⇒ Array<Google::Apis::AnalyticsreportingV4::Activity>
Represents a detailed view into each of the activity in this session.
Corresponds to the JSON property activities
2069 2070 2071 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 2069 def activities @activities end |
#data_source ⇒ String
The data source of a hit. By default, hits sent from analytics.js are
reported as "web" and hits sent from the mobile SDKs are reported as "app".
These values can be overridden in the Measurement Protocol.
Corresponds to the JSON property dataSource
2076 2077 2078 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 2076 def data_source @data_source end |
#device_category ⇒ String
The type of device used: "mobile", "tablet" etc.
Corresponds to the JSON property deviceCategory
2081 2082 2083 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 2081 def device_category @device_category end |
#platform ⇒ String
Platform on which the activity happened: "android", "ios" etc.
Corresponds to the JSON property platform
2086 2087 2088 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 2086 def platform @platform end |
#session_date ⇒ String
Date of this session in ISO-8601 format.
Corresponds to the JSON property sessionDate
2091 2092 2093 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 2091 def session_date @session_date end |
#session_id ⇒ String
Unique ID of the session.
Corresponds to the JSON property sessionId
2096 2097 2098 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 2096 def session_id @session_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2103 2104 2105 2106 2107 2108 2109 2110 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 2103 def update!(**args) @activities = args[:activities] if args.key?(:activities) @data_source = args[:data_source] if args.key?(:data_source) @device_category = args[:device_category] if args.key?(:device_category) @platform = args[:platform] if args.key?(:platform) @session_date = args[:session_date] if args.key?(:session_date) @session_id = args[:session_id] if args.key?(:session_id) end |