class Google::Apis::AnalyticsreportingV4::SegmentMetricFilter
Metric
filter to be used in a segment filter clause.
Attributes
The value to compare against. If the operator is `BETWEEN`, this value is treated as minimum comparison value. Corresponds to the JSON property `comparisonValue` @return [String]
Max comparison value is only used for `BETWEEN` operator. Corresponds to the JSON property `maxComparisonValue` @return [String]
The metric that will be filtered on. A `metricFilter` must contain a metric name. Corresponds to the JSON property `metricName` @return [String]
Specifies is the operation to perform to compare the metric. The default is ` EQUAL`. Corresponds to the JSON property `operator` @return [String]
Scope for a metric defines the level at which that metric is defined. The specified metric scope must be equal to or greater than its primary scope as defined in the data model. The primary scope is defined by if the segment is selecting users or sessions. Corresponds to the JSON property `scope` @return [String]
Public Class Methods
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 1830 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 1835 def update!(**args) @comparison_value = args[:comparison_value] if args.key?(:comparison_value) @max_comparison_value = args[:max_comparison_value] if args.key?(:max_comparison_value) @metric_name = args[:metric_name] if args.key?(:metric_name) @operator = args[:operator] if args.key?(:operator) @scope = args[:scope] if args.key?(:scope) end