Class: Google::Apis::AnalyticsdataV1beta::ActiveMetricRestriction

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

A metric actively restricted in creating the report.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ActiveMetricRestriction

Returns a new instance of ActiveMetricRestriction.



39
40
41
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 39

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

Instance Attribute Details

#metric_nameString

The name of the restricted metric. Corresponds to the JSON property metricName

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 32

def metric_name
  @metric_name
end

#restricted_metric_typesArray<String>

The reason for this metric's restriction. Corresponds to the JSON property restrictedMetricTypes

Returns:

  • (Array<String>)


37
38
39
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 37

def restricted_metric_types
  @restricted_metric_types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



44
45
46
47
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 44

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