class Google::Apis::AnalyticsreportingV4::DynamicSegment
Dynamic segment definition for defining the segment within the request. A segment can select users, sessions or both.
Attributes
name[RW]
The name of the dynamic segment. Corresponds to the JSON property `name` @return [String]
session_segment[RW]
SegmentDefinition
defines the segment to be a set of SegmentFilters which are combined together with a logical `AND` operation. Corresponds to the JSON property `sessionSegment` @return [Google::Apis::AnalyticsreportingV4::SegmentDefinition]
user_segment[RW]
SegmentDefinition
defines the segment to be a set of SegmentFilters which are combined together with a logical `AND` operation. Corresponds to the JSON property `userSegment` @return [Google::Apis::AnalyticsreportingV4::SegmentDefinition]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 487 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 492 def update!(**args) @name = args[:name] if args.key?(:name) @session_segment = args[:session_segment] if args.key?(:session_segment) @user_segment = args[:user_segment] if args.key?(:user_segment) end