class Google::Apis::AnalyticsreportingV4::SegmentMetricFilter

Metric filter to be used in a segment filter clause.

Attributes

comparison_value[RW]

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[RW]

Max comparison value is only used for `BETWEEN` operator. Corresponds to the JSON property `maxComparisonValue` @return [String]

metric_name[RW]

The metric that will be filtered on. A `metricFilter` must contain a metric name. Corresponds to the JSON property `metricName` @return [String]

operator[RW]

Specifies is the operation to perform to compare the metric. The default is ` EQUAL`. Corresponds to the JSON property `operator` @return [String]

scope[RW]

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

new(**args) click to toggle source
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 1830
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 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