Class: Google::Apis::AnalyticsdataV1beta::MetricHeader
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsdataV1beta::MetricHeader
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsdata_v1beta/classes.rb,
lib/google/apis/analyticsdata_v1beta/representations.rb,
lib/google/apis/analyticsdata_v1beta/representations.rb
Overview
Describes a metric column in the report. Visible metrics requested in a report produce column entries within rows and MetricHeaders. However, metrics used exclusively within filters or expressions do not produce columns in a report; correspondingly, those metrics do not produce headers.
Instance Attribute Summary collapse
-
#name ⇒ String
The metric's name.
-
#type ⇒ String
The metric's data type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MetricHeader
constructor
A new instance of MetricHeader.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MetricHeader
Returns a new instance of MetricHeader.
927 928 929 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 927 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The metric's name.
Corresponds to the JSON property name
920 921 922 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 920 def name @name end |
#type ⇒ String
The metric's data type.
Corresponds to the JSON property type
925 926 927 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 925 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
932 933 934 935 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 932 def update!(**args) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end |