class Google::Apis::AnalyticsreportingV4::SegmentFilter
SegmentFilter
defines the segment to be either a simple or a sequence segment. A simple segment condition contains dimension and metric conditions to select the sessions or users. A sequence segment condition can be used to select users or sessions based on sequential conditions.
Attributes
If true, match the complement of simple or sequence segment. For example, to match all visits not from “New York”, we can define the segment as follows: “ sessionSegment”: ` “segmentFilters”: [` “simpleSegment” :` “ orFiltersForSegment”: [` “segmentFilterClauses”:[` “dimensionFilter”: ` “ dimensionName”: “ga:city”, “expressions”: [“New York”] ` `] `] `, “not”: “True” `] `, Corresponds to the JSON property `not` @return [Boolean]
If true, match the complement of simple or sequence segment. For example, to match all visits not from “New York”, we can define the segment as follows: “ sessionSegment”: ` “segmentFilters”: [` “simpleSegment” :` “ orFiltersForSegment”: [` “segmentFilterClauses”:[` “dimensionFilter”: ` “ dimensionName”: “ga:city”, “expressions”: [“New York”] ` `] `] `, “not”: “True” `] `, Corresponds to the JSON property `not` @return [Boolean]
Sequence conditions consist of one or more steps, where each step is defined by one or more dimension/metric conditions. Multiple steps can be combined with special sequence operators. Corresponds to the JSON property `sequenceSegment` @return [Google::Apis::AnalyticsreportingV4::SequenceSegment]
A Simple segment conditions consist of one or more dimension/metric conditions that can be combined. Corresponds to the JSON property `simpleSegment` @return [Google::Apis::AnalyticsreportingV4::SimpleSegment]
Public Class Methods
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 1750 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 1755 def update!(**args) @not = args[:not] if args.key?(:not) @sequence_segment = args[:sequence_segment] if args.key?(:sequence_segment) @simple_segment = args[:simple_segment] if args.key?(:simple_segment) end