Class: Google::Apis::AnalyticsdataV1alpha::Filter
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsdataV1alpha::Filter
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsdata_v1alpha/classes.rb,
lib/google/apis/analyticsdata_v1alpha/representations.rb,
lib/google/apis/analyticsdata_v1alpha/representations.rb
Overview
An expression to filter dimension or metric values.
Instance Attribute Summary collapse
-
#between_filter ⇒ Google::Apis::AnalyticsdataV1alpha::BetweenFilter
To express that the result needs to be between two numbers (inclusive).
-
#field_name ⇒ String
The dimension name or metric name.
-
#in_list_filter ⇒ Google::Apis::AnalyticsdataV1alpha::InListFilter
The result needs to be in a list of string values.
-
#null_filter ⇒ Boolean
(also: #null_filter?)
A filter for null values.
-
#numeric_filter ⇒ Google::Apis::AnalyticsdataV1alpha::NumericFilter
Filters for numeric or date values.
-
#string_filter ⇒ Google::Apis::AnalyticsdataV1alpha::StringFilter
The filter for string Corresponds to the JSON property
stringFilter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Filter
constructor
A new instance of Filter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Filter
Returns a new instance of Filter.
627 628 629 |
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 627 def initialize(**args) update!(**args) end |
Instance Attribute Details
#between_filter ⇒ Google::Apis::AnalyticsdataV1alpha::BetweenFilter
To express that the result needs to be between two numbers (inclusive).
Corresponds to the JSON property betweenFilter
595 596 597 |
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 595 def between_filter @between_filter end |
#field_name ⇒ String
The dimension name or metric name. Must be a name defined in dimensions or
metrics.
Corresponds to the JSON property fieldName
601 602 603 |
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 601 def field_name @field_name end |
#in_list_filter ⇒ Google::Apis::AnalyticsdataV1alpha::InListFilter
The result needs to be in a list of string values.
Corresponds to the JSON property inListFilter
606 607 608 |
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 606 def in_list_filter @in_list_filter end |
#null_filter ⇒ Boolean Also known as: null_filter?
A filter for null values. If True, a null dimension value is matched by this
filter. Null filter is commonly used inside a NOT filter expression. For
example, a NOT expression of a null filter removes rows when a dimension is
null.
Corresponds to the JSON property nullFilter
614 615 616 |
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 614 def null_filter @null_filter end |
#numeric_filter ⇒ Google::Apis::AnalyticsdataV1alpha::NumericFilter
Filters for numeric or date values.
Corresponds to the JSON property numericFilter
620 621 622 |
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 620 def numeric_filter @numeric_filter end |
#string_filter ⇒ Google::Apis::AnalyticsdataV1alpha::StringFilter
The filter for string
Corresponds to the JSON property stringFilter
625 626 627 |
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 625 def string_filter @string_filter end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
632 633 634 635 636 637 638 639 |
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 632 def update!(**args) @between_filter = args[:between_filter] if args.key?(:between_filter) @field_name = args[:field_name] if args.key?(:field_name) @in_list_filter = args[:in_list_filter] if args.key?(:in_list_filter) @null_filter = args[:null_filter] if args.key?(:null_filter) @numeric_filter = args[:numeric_filter] if args.key?(:numeric_filter) @string_filter = args[:string_filter] if args.key?(:string_filter) end |