# Google Analytics Data V1beta API - Class Google::Analytics::Data::V1beta::ResponseMetaData::SchemaRestrictionResponse::ActiveMetricRestriction (v0.4.3)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.4.3 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-ResponseMetaData-SchemaRestrictionResponse-ActiveMetricRestriction)
- [0.4.2](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/0.4.2/Google-Analytics-Data-V1beta-ResponseMetaData-SchemaRestrictionResponse-ActiveMetricRestriction)
Reference documentation and code samples for the Google Analytics Data V1beta API class Google::Analytics::Data::V1beta::ResponseMetaData::SchemaRestrictionResponse::ActiveMetricRestriction.

A metric actively restricted in creating the report.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #metric_name

    def metric_name() -> ::String

**Returns**

- (::String) --- The name of the restricted metric.

### #metric_name=

    def metric_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The name of the restricted metric.
**Returns**

- (::String) --- The name of the restricted metric.

### #restricted_metric_types

    def restricted_metric_types() -> ::Array<::Google::Analytics::Data::V1beta::RestrictedMetricType>

**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::RestrictedMetricType](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-RestrictedMetricType)\>) --- The reason for this metric's restriction.

### #restricted_metric_types=

    def restricted_metric_types=(value) -> ::Array<::Google::Analytics::Data::V1beta::RestrictedMetricType>

**Parameter**

- **value** (::Array\<[::Google::Analytics::Data::V1beta::RestrictedMetricType](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-RestrictedMetricType)\>) --- The reason for this metric's restriction.
**Returns**

- (::Array\<[::Google::Analytics::Data::V1beta::RestrictedMetricType](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-RestrictedMetricType)\>) --- The reason for this metric's restriction.