Class: Google::Apis::AnalyticsdataV1alpha::MetricHeader

Inherits:
Object
  • Object
show all
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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MetricHeader

Returns a new instance of MetricHeader.



805
806
807
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 805

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

Instance Attribute Details

#nameString

The metric's name. Corresponds to the JSON property name

Returns:

  • (String)


798
799
800
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 798

def name
  @name
end

#typeString

The metric's data type. Corresponds to the JSON property type

Returns:

  • (String)


803
804
805
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 803

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



810
811
812
813
# File 'lib/google/apis/analyticsdata_v1alpha/classes.rb', line 810

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