Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessMetricHeader

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/analyticsadmin_v1alpha/classes.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb,
lib/google/apis/analyticsadmin_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) ⇒ GoogleAnalyticsAdminV1alphaAccessMetricHeader

Returns a new instance of GoogleAnalyticsAdminV1alphaAccessMetricHeader.



347
348
349
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 347

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

Instance Attribute Details

#metric_nameString

The metric's name; for example 'accessCount'. Corresponds to the JSON property metricName

Returns:

  • (String)


345
346
347
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 345

def metric_name
  @metric_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



352
353
354
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 352

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