Class: Google::Apis::AnalyticsreportingV4::MetricFilterClause
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsreportingV4::MetricFilterClause
- 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
-
#filters ⇒ Array<Google::Apis::AnalyticsreportingV4::MetricFilter>
The repeated set of filters.
-
#operator ⇒ String
The operator for combining multiple metric filters.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MetricFilterClause
constructor
A new instance of MetricFilterClause.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ MetricFilterClause
Returns a new instance of MetricFilterClause.
1097 1098 1099 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1097 def initialize(**args) update!(**args) end |
Instance Attribute Details
#filters ⇒ Array<Google::Apis::AnalyticsreportingV4::MetricFilter>
The repeated set of filters. They are logically combined based on the
operator specified.
Corresponds to the JSON property filters
1095 1096 1097 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1095 def filters @filters end |
#operator ⇒ String
The operator for combining multiple metric filters. If unspecified, it is
treated as an OR
.
Corresponds to the JSON property operator
1089 1090 1091 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1089 def operator @operator end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1102 1103 1104 1105 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1102 def update!(**args) @operator = args[:operator] if args.key?(:operator) @filters = args[:filters] if args.key?(:filters) end |