class Google::Apis::AnalyticsreportingV4::MetricFilter
MetricFilter
specifies the filter on a metric.
Attributes
The value to compare against. Corresponds to the JSON property `comparisonValue` @return [String]
The metric that will be filtered on. A metricFilter must contain a metric name. A metric name can be an alias earlier defined as a metric or it can also be a metric expression. Corresponds to the JSON property `metricName` @return [String]
Logical `NOT` operator. If this boolean is set to true, then the matching metric values will be excluded in the report. The default is false. Corresponds to the JSON property `not` @return [Boolean]
Logical `NOT` operator. If this boolean is set to true, then the matching metric values will be excluded in the report. The default is false. Corresponds to the JSON property `not` @return [Boolean]
Is the metric `EQUAL`, `LESS_THAN` or `GREATER_THAN` the comparisonValue, the default is `EQUAL`. If the operator is `IS_MISSING`, checks if the metric is missing and would ignore the comparisonValue. Corresponds to the JSON property `operator` @return [String]
Public Class Methods
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 801 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 806 def update!(**args) @comparison_value = args[:comparison_value] if args.key?(:comparison_value) @metric_name = args[:metric_name] if args.key?(:metric_name) @not = args[:not] if args.key?(:not) @operator = args[:operator] if args.key?(:operator) end