Class: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsreportingV4::SegmentMetricFilter
- 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
Metric filter to be used in a segment filter clause.
Instance Attribute Summary collapse
-
#comparison_value ⇒ String
The value to compare against.
-
#max_comparison_value ⇒ String
Max comparison value is only used for
BETWEEN
operator. -
#metric_name ⇒ String
The metric that will be filtered on.
-
#operator ⇒ String
Specifies is the operation to perform to compare the metric.
-
#scope ⇒ String
Scope for a metric defines the level at which that metric is defined.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SegmentMetricFilter
constructor
A new instance of SegmentMetricFilter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SegmentMetricFilter
Returns a new instance of SegmentMetricFilter.
1914 1915 1916 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1914 def initialize(**args) update!(**args) end |
Instance Attribute Details
#comparison_value ⇒ String
The value to compare against. If the operator is BETWEEN
, this value is
treated as minimum comparison value.
Corresponds to the JSON property comparisonValue
1887 1888 1889 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1887 def comparison_value @comparison_value end |
#max_comparison_value ⇒ String
Max comparison value is only used for BETWEEN
operator.
Corresponds to the JSON property maxComparisonValue
1892 1893 1894 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1892 def max_comparison_value @max_comparison_value end |
#metric_name ⇒ String
The metric that will be filtered on. A metricFilter
must contain a
metric name.
Corresponds to the JSON property metricName
1898 1899 1900 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1898 def metric_name @metric_name end |
#operator ⇒ String
Specifies is the operation to perform to compare the metric. The default
is EQUAL
.
Corresponds to the JSON property operator
1904 1905 1906 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1904 def operator @operator end |
#scope ⇒ 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
1912 1913 1914 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1912 def scope @scope end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1919 1920 1921 1922 1923 1924 1925 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 1919 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 |