Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccessMetric

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

The quantitative measurements of a report. For example, the metric accessCount is the total number of data access records.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaAccessMetric

Returns a new instance of GoogleAnalyticsAdminV1alphaAccessMetric.



325
326
327
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 325

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

Instance Attribute Details

#metric_nameString

The API name of the metric. See Data Access Schema for the list of metrics supported in this API. Metrics are referenced by name in metricFilter & orderBys. Corresponds to the JSON property metricName

Returns:

  • (String)


323
324
325
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 323

def metric_name
  @metric_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



330
331
332
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 330

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