Class: Google::Apis::AnalyticsreportingV4::MetricFilterClause

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/analyticsreporting_v4/classes.rb,
generated/google/apis/analyticsreporting_v4/representations.rb,
generated/google/apis/analyticsreporting_v4/representations.rb

Overview

Represents a group of metric filters. Set the operator value to specify how the filters are logically combined.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MetricFilterClause

Returns a new instance of MetricFilterClause.



869
870
871
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 869

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#filtersArray<Google::Apis::AnalyticsreportingV4::MetricFilter>

The repeated set of filters. They are logically combined based on the operator specified. Corresponds to the JSON property filters



861
862
863
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 861

def filters
  @filters
end

#operatorString

The operator for combining multiple metric filters. If unspecified, it is treated as an OR. Corresponds to the JSON property operator

Returns:

  • (String)


867
868
869
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 867

def operator
  @operator
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



874
875
876
877
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 874

def update!(**args)
  @filters = args[:filters] if args.key?(:filters)
  @operator = args[:operator] if args.key?(:operator)
end