class Google::Apis::AnalyticsreportingV4::UserActivitySession

This represents a user session performed on a specific device at a certain time over a period of time.

Attributes

activities[RW]

Represents a detailed view into each of the activity in this session. Corresponds to the JSON property `activities` @return [Array<Google::Apis::AnalyticsreportingV4::Activity>]

data_source[RW]

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` @return [String]

device_category[RW]

The type of device used: “mobile”, “tablet” etc. Corresponds to the JSON property `deviceCategory` @return [String]

platform[RW]

Platform on which the activity happened: “android”, “ios” etc. Corresponds to the JSON property `platform` @return [String]

session_date[RW]

Date of this session in ISO-8601 format. Corresponds to the JSON property `sessionDate` @return [String]

session_id[RW]

Unique ID of the session. Corresponds to the JSON property `sessionId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 2023
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/analyticsreporting_v4/classes.rb, line 2028
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